Package com.wowza.wms.transport.media
Interface IMediaTransportProviderConfiguration
- 
- All Known Implementing Classes:
- MediaTransportConfigurationAmazonS3,- com.wowza.wms.transport.media.MediaTransportConfigurationBase,- MediaTransportConfigurationGoogleCloud
 
 public interface IMediaTransportProviderConfigurationIMediaTransportProviderConfiguration This object provides a mechanism to configure a media transport provider. *
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddCustomHeader(String name, String value)Add a custom output header for this configuration item.booleangetAttributeBoolean(String name)Attempt to get a boolean attribute with the name specified.intgetAttributeInt(String name)Attempt to get an int attribute with the name specified.longgetAttributeLong(String name)Attempt to get a long attribute with the name specified.java.util.Set<String>getAttributeNames()Get a list of all the attribute names set.StringgetAttributeString(String name)Attempt to get a string attribute with the name specified.StringgetConfigurationName()Get the name of this configuration item.java.util.HashMap<String,String>getCustomHeaders()Get all the custom headers set.booleangetDebug()Get the debug flag for this configuration object.WMSPropertiesgetProperties()Get the WMSProperties holder.java.util.HashMap<String,String>getTransportHeaderOutput(java.util.HashMap<String,byte[]> dynamictransportinformation, IMediaTransportObject transportObject)This should be called by the transport provider using this configuration item.voidinit()Initialise the provider configuration.booleanisReady()Get the ready flag for this configuration object.voidremoveCustomHeader(String name)Remove a custom output headervoidsetAttributeBoolean(String name, boolean value)Set an attribute with a boolean typevoidsetAttributeInt(String name, int value)Set an attribute with an int typevoidsetAttributeLong(String name, long value)Set an attribute with a long typevoidsetAttributeString(String name, String value)Set an attribute with a string typevoidsetConfigurationName(String name)Set the name of this configuration object.voidsetDebug(boolean debug)Set the debug flag for this configuration object.voidsetIsReady(boolean ready)Set if this configuration object is ready.voidsetProperties(WMSProperties props)When the object is created a WMSProperties holder is created.
 
- 
- 
- 
Method Detail- 
initvoid init() Initialise the provider configuration. This should only be called when all appropriate attributes have been set.
 - 
setConfigurationNamevoid setConfigurationName(String name) Set the name of this configuration object.- Parameters:
- String-
 
 - 
getConfigurationNameString getConfigurationName() Get the name of this configuration item.- Returns:
- String
 
 - 
addCustomHeadervoid addCustomHeader(String name, String value)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-
 
 - 
removeCustomHeadervoid removeCustomHeader(String name) Remove a custom output header- Parameters:
- String-
 
 - 
getCustomHeadersjava.util.HashMap<String,String> getCustomHeaders() Get all the custom headers set.- Returns:
- HashMap
 
 - 
setAttributeStringvoid setAttributeString(String name, String value)Set an attribute with a string type- Parameters:
- name-
- value-
 
 - 
setAttributeBooleanvoid setAttributeBoolean(String name, boolean value)Set an attribute with a boolean type- Parameters:
- name-
- boolean-
 
 - 
setAttributeLongvoid setAttributeLong(String name, long value)Set an attribute with a long type- Parameters:
- name-
- long-
 
 - 
setAttributeIntvoid setAttributeInt(String name, int value)Set an attribute with an int type- Parameters:
- name-
- int-
 
 - 
getAttributeStringString getAttributeString(String name) 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
 
 - 
getAttributeBooleanboolean getAttributeBoolean(String name) Attempt to get a boolean attribute with the name specified. If the attribute is not found false should be returned.- Parameters:
- name-
- Returns:
- boolean
 
 - 
getAttributeLonglong getAttributeLong(String name) Attempt to get a long attribute with the name specified. If the attribute is not found -1 should be returned.- Parameters:
- name-
- Returns:
- long
 
 - 
getAttributeIntint getAttributeInt(String name) Attempt to get an int attribute with the name specified. If the attribute is not found -1 should be returned.- Parameters:
- name-
- Returns:
- int
 
 - 
getAttributeNamesjava.util.Set<String> getAttributeNames() Get a list of all the attribute names set.- Returns:
- Set
 
 - 
getTransportHeaderOutputjava.util.HashMap<String,String> getTransportHeaderOutput(java.util.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 HashMapand the other is a IMediaTransportObject The result should be a HashMap that the transport provider can then use to process the data block being transported. - Parameters:
- HashMap-
- IMediaTransportObject-
- Returns:
- HashMap
 
 - 
setPropertiesvoid setProperties(WMSProperties props) 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-
 
 - 
getPropertiesWMSProperties getProperties() Get the WMSProperties holder.- Returns:
- WMSProperties
 
 - 
setIsReadyvoid 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-
 
 - 
isReadyboolean isReady() Get the ready flag for this configuration object.- Returns:
- boolean
 
 - 
setDebugvoid setDebug(boolean debug) Set the debug flag for this configuration object.- Parameters:
- boolean-
 
 - 
getDebugboolean getDebug() Get the debug flag for this configuration object.- Returns:
- boolean
 
 
- 
 
-