Package com.wowza.wms.transport.media
Interface IMediaTransportResponse
- 
 public interface IMediaTransportResponseIMediaTransportResponse This object is provided as part of the IMediaTransportProviderListener callback. This is an internal object/class.
- 
- 
Field SummaryFields Modifier and Type Field Description static StringRESPONSE_DATAstatic StringRESPONSE_HEADERSstatic StringRESPONSE_INDICATOR
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddSuccessData(String key, byte[] data)In order to provide as much flexibility as possible it is possible to add 'success' data to the response object in the form of a key and a byte array.StringgetBasicMessage()Get the basic message for the response object.StringgetCommand()Get the command for the response object.StringgetContentType()Get the content type for the response object.StringgetPath()Get the path for the response object.booleangetSuccess()Get the success flag from the response object.byte[]getSuccessData(String key)Get the success data availablejava.util.List<String>getSuccessKeyList()Get the list of keys that the success data contains.StringgetUUID()Get the UUID of the object.voidsetbasicMessage(String basicMessage)Set a basic message for the response object.voidsetCommand(String command)Set the command type for the response object.voidsetContentType(String contenttype)Set the content type for the response object.voidsetPath(String path)Set the path for the response object.voidsetSuccess(boolean success)Set the success flag for the response object.voidsetUUID(String id)Sets the UUID of the response object.
 
- 
- 
- 
Field Detail- 
RESPONSE_HEADERSstatic final String RESPONSE_HEADERS - See Also:
- Constant Field Values
 
 - 
RESPONSE_INDICATORstatic final String RESPONSE_INDICATOR - See Also:
- Constant Field Values
 
 - 
RESPONSE_DATAstatic final String RESPONSE_DATA - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
setUUIDvoid setUUID(String id) Sets the UUID of the response object. This should match the IMediaTransportDataObject UUID created when it was initialised.- Parameters:
- String-
 
 - 
getUUIDString getUUID() Get the UUID of the object.- Returns:
- String
 
 - 
setPathvoid setPath(String path) Set the path for the response object. This should match the IMediaTransportDataObject path setting.- Parameters:
- String-
 
 - 
getPathString getPath() Get the path for the response object.- Returns:
- String
 
 - 
setContentTypevoid setContentType(String contenttype) Set the content type for the response object. This should match the IMediaTransportDataObject content type setting.- Parameters:
- String-
 
 - 
getContentTypeString getContentType() Get the content type for the response object.- Returns:
- String
 
 - 
setCommandvoid setCommand(String command) Set the command type for the response object. This should match the IMediaTransportDataObject command setting.- Parameters:
- String-
 
 - 
getCommandString getCommand() Get the command for the response object.- Returns:
- String
 
 - 
setbasicMessagevoid setbasicMessage(String basicMessage) Set a basic message for the response object. This allows basic string messages for state to be available in the IMediaTransportProviderListener callback. A common message would be SUCCESS or FAILED.- Parameters:
- String-
 
 - 
getBasicMessageString getBasicMessage() Get the basic message for the response object.- Returns:
- String
 
 - 
setSuccessvoid setSuccess(boolean success) Set the success flag for the response object. If the transport was successful then it should be set to true.- Parameters:
- boolean-
 
 - 
getSuccessboolean getSuccess() Get the success flag from the response object.- Returns:
- boolean
 
 - 
addSuccessDatavoid addSuccessData(String key, byte[] data)In order to provide as much flexibility as possible it is possible to add 'success' data to the response object in the form of a key and a byte array. An example would be as follows MediaTransportConfigurationHTTP.RESPONSE_INDICATOR, String.valueOf("200").getBytes()); This is done within the MediaTransportProviderhHTTP and allows the response code 200 to be added into the success data. There are 3 defined responses, although you can add any you wish IMediaTransportProviderConfiguration.RESPONSE_INDICATOR IMediaTransportProviderConfiguration.RESPONSE_HEADERS IMediaTransportProviderConfiguration.RESPONSE_DATA- Parameters:
- key-
- data-
 
 - 
getSuccessDatabyte[] getSuccessData(String key) Get the success data available- Parameters:
- String-
- Returns:
- byte[]
 
 - 
getSuccessKeyListjava.util.List<String> getSuccessKeyList() Get the list of keys that the success data contains.- Returns:
- List
 
 
- 
 
-