org.oipf.download
Class LocatorDownloadSpec

java.lang.Object
  extended by org.ocap.shared.dvr.RecordingSpec
      extended by org.oipf.download.LocatorDownloadSpec

public class LocatorDownloadSpec
extends org.ocap.shared.dvr.RecordingSpec

Specifies a recording request in terms of a Locator to a file. The identified file is asynchronously downloaded from the network.

When instances of this class are passed to RecordingManager.record(..), the following additional failure mode shall apply - if the locator does not reference a file then the record method shall throw an IllegalArgumentException.

No additional failure modes are defined for RecordingRequest.reschedule.

For recording requests resulting from a recording spec of this type, downloading shall start immediately. Such recording requests will never be in a pending or a IN_PROGRESS_INCOMPLETE_STATE state.


Constructor Summary
LocatorDownloadSpec(javax.tv.locator.Locator source, org.ocap.shared.dvr.RecordingProperties properties)
          Constructor
 
Method Summary
 javax.tv.locator.Locator getSource()
          Returns the source of the content to be downloaded
 
Methods inherited from class org.ocap.shared.dvr.RecordingSpec
getProperties
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocatorDownloadSpec

public LocatorDownloadSpec(javax.tv.locator.Locator source,
                           org.ocap.shared.dvr.RecordingProperties properties)
Constructor

Parameters:
source - Source of content to be downloaded
properties - the definition of how the recording is to be done
Method Detail

getSource

public javax.tv.locator.Locator getSource()
Returns the source of the content to be downloaded

Returns:
the source passed into the constructor