Package com.wowza.wms.transport.media
Interface IMediaTransportDataObject
- 
 public interface IMediaTransportDataObjectIMediaTransportDataObject This object is used by the MediaTransport sub system and should contain a command ( used by the appropriate transport provider ), content-type, path and a byte[] array of the data to transport.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetCacheControl()StringgetCommand()Get the command setStringgetContentType()Get the content type set.byte[]getData()Get the data body setStringgetHeader(String name)java.util.HashMap<String,String>getHeaders()StringgetOption(String name)Get an option for this object.java.util.HashMap<String,String>getOptions()Get the map of options set for this object.StringgetPath()Get the path setStringgetUUID()Return the UUID created when the object was initialised.voidinit()This initialises the object.voidsetCacheControl(String cacheControl)voidsetCommand(String command)This is the command the object needs to use to execute transport within the transport provider.voidsetContentType(String contentType)Set the content type of the object.voidsetData(byte[] data)This sets the data body of the object and must be a byte array.voidsetHeader(String name, String value)voidsetOption(String name, String value)Set an option for this object.voidsetPath(String path)This sets the destination path of the object.
 
- 
- 
- 
Method Detail- 
initvoid init() This initialises the object. IT MUST create a UUID for the object upon initialisation and MUST be a string. It is up to the individual implementation to determine the format however MUST have a low chance of conflict for the period of use of the specific object.
 - 
getUUIDString getUUID() Return the UUID created when the object was initialised.- Returns:
- String
 
 - 
setContentTypevoid setContentType(String contentType) Set the content type of the object. This should be a known MIME type that can be understood by the destination for the transport provider being used.- Parameters:
- String-
 
 - 
setCommandvoid setCommand(String command) This is the command the object needs to use to execute transport within the transport provider. A default provider available is a HTTP provider so common commands would be GET, PUT, POST, DELETE This is implementation independent so can be anything the provider can understand.- Parameters:
- String-
 
 - 
setDatavoid setData(byte[] data) This sets the data body of the object and must be a byte array.- Parameters:
- byte- []
 
 - 
setPathvoid setPath(String path) This sets the destination path of the object. This will be used by the transport provider. A common path could be /sample.mp4 which would indicate the data set should be stored as sample.mp4 in the root of the transport provider destination.- Parameters:
- String-
 
 - 
getDatabyte[] getData() Get the data body set- Returns:
- byte[]
 
 - 
getPathString getPath() Get the path set- Returns:
- String
 
 - 
getContentTypeString getContentType() Get the content type set.- Returns:
- String
 
 - 
getCommandString getCommand() Get the command set- Returns:
- String
 
 - 
setOptionvoid setOption(String name, String value)Set an option for this object. The option name set would be used by a transport provider when transporting this object.- Parameters:
- String-
- String-
 
 - 
getOptionString getOption(String name) Get an option for this object. If the option named does not exist it should return null.- Parameters:
- String-
- Returns:
- String
 
 - 
getOptionsjava.util.HashMap<String,String> getOptions() Get the map of options set for this object.- Returns:
- HashMap
 
 - 
setHeadervoid setHeader(String name, String value)
 - 
getHeaderString getHeader(String name) 
 - 
getHeadersjava.util.HashMap<String,String> getHeaders() 
 - 
getCacheControlString getCacheControl() 
 - 
setCacheControlvoid setCacheControl(String cacheControl) 
 
- 
 
-