Package com.wowza.wms.transport.media
Interface IMediaTransportProviderConfiguration
- All Known Implementing Classes:
MediaTransportConfigurationAmazonS3
,com.wowza.wms.transport.media.MediaTransportConfigurationBase
,MediaTransportConfigurationGoogleCloud
public interface IMediaTransportProviderConfiguration
IMediaTransportProviderConfiguration
This object provides a mechanism to configure a media transport provider.
*
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCustomHeader
(String name, String value) Add a custom output header for this configuration item.boolean
getAttributeBoolean
(String name) Attempt to get a boolean attribute with the name specified.int
getAttributeInt
(String name) Attempt to get an int attribute with the name specified.long
getAttributeLong
(String name) Attempt to get a long attribute with the name specified.Get a list of all the attribute names set.getAttributeString
(String name) Attempt to get a string attribute with the name specified.Get the name of this configuration item.Get all the custom headers set.boolean
getDebug()
Get the debug flag for this configuration object.Get the WMSProperties holder.getTransportHeaderOutput
(HashMap<String, byte[]> dynamictransportinformation, IMediaTransportObject transportObject) This should be called by the transport provider using this configuration item.void
init()
Initialise the provider configuration.boolean
isReady()
Get the ready flag for this configuration object.void
removeCustomHeader
(String name) Remove a custom output headervoid
setAttributeBoolean
(String name, boolean value) Set an attribute with a boolean typevoid
setAttributeInt
(String name, int value) Set an attribute with an int typevoid
setAttributeLong
(String name, long value) Set an attribute with a long typevoid
setAttributeString
(String name, String value) Set an attribute with a string typevoid
setConfigurationName
(String name) Set the name of this configuration object.void
setDebug
(boolean debug) Set the debug flag for this configuration object.void
setIsReady
(boolean ready) Set if this configuration object is ready.void
setProperties
(WMSProperties props) When the object is created a WMSProperties holder is created.
-
Method Details
-
init
void init()Initialise the provider configuration. This should only be called when all appropriate attributes have been set. -
setConfigurationName
Set the name of this configuration object.- Parameters:
String
-
-
getConfigurationName
String getConfigurationName()Get the name of this configuration item.- Returns:
- String
-
addCustomHeader
Add a custom output header for this configuration item. This is more geared towards HTTP transport providers but can be used by any transport provider.- Parameters:
String
-String
-
-
removeCustomHeader
Remove a custom output header- Parameters:
String
-
-
getCustomHeaders
Get all the custom headers set.- Returns:
- HashMap<String,String>
-
setAttributeString
Set an attribute with a string type- Parameters:
name
-value
-
-
setAttributeBoolean
Set an attribute with a boolean type- Parameters:
name
-boolean
-
-
setAttributeLong
Set an attribute with a long type- Parameters:
name
-long
-
-
setAttributeInt
Set an attribute with an int type- Parameters:
name
-int
-
-
getAttributeString
Attempt to get a string attribute with the name specified. If the attribute is not found a null should be returned.- Parameters:
name
-- Returns:
- String
-
getAttributeBoolean
Attempt to get a boolean attribute with the name specified. If the attribute is not found false should be returned.- Parameters:
name
-- Returns:
- boolean
-
getAttributeLong
Attempt to get a long attribute with the name specified. If the attribute is not found -1 should be returned.- Parameters:
name
-- Returns:
- long
-
getAttributeInt
Attempt to get an int attribute with the name specified. If the attribute is not found -1 should be returned.- Parameters:
name
-- Returns:
- int
-
getAttributeNames
Get a list of all the attribute names set.- Returns:
- Set
-
getTransportHeaderOutput
HashMap<String,String> getTransportHeaderOutput(HashMap<String, byte[]> dynamictransportinformation, IMediaTransportObject transportObject) This should be called by the transport provider using this configuration item. You can pass in two objects, one is a HashMap<String,byte[]> and the other is a IMediaTransportObject The result should be a HashMap<String,String> that the transport provider can then use to process the data block being transported.- Parameters:
HashMap
- <String,byte[]>IMediaTransportObject
-- Returns:
- HashMap<String,String>
-
setProperties
When the object is created a WMSProperties holder is created. This can be changed by setting it with this call. All attributes should be stored within a WMSProperties object- Parameters:
WMSProperties
-
-
getProperties
WMSProperties getProperties()Get the WMSProperties holder.- Returns:
- WMSProperties
-
setIsReady
void setIsReady(boolean ready) Set if this configuration object is ready. It should be set after init() is called and therefore after any attributes have been set.- Parameters:
boolean
-
-
isReady
boolean isReady()Get the ready flag for this configuration object.- Returns:
- boolean
-
setDebug
void setDebug(boolean debug) Set the debug flag for this configuration object.- Parameters:
boolean
-
-
getDebug
boolean getDebug()Get the debug flag for this configuration object.- Returns:
- boolean
-