Package com.wowza.wms.httpstreamer.model
Interface IHTTPStreamerApplicationContext
- 
 public interface IHTTPStreamerApplicationContextIHTTPStreamerApplicationContext: HTTP streamer application context interface. Used by HTTP streaming adapter to store per-application information. 
- 
- 
Field SummaryFields Modifier and Type Field Description static intHTTPORIGINMODE_AUTOstatic intHTTPORIGINMODE_OFFstatic intHTTPORIGINMODE_ON
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddQueryStrRemoveList(String name)Add a name to the list of query string parameters that will not be copied to the media URLs for HTTP streamingjava.util.Map<String,String>filterQueryStr(java.util.Map<String,String> map)InternalIApplicationInstancegetAppInstance()Get application instanceStringgetCacheControlStatus4xx()Get the cache-control header for 4xx HTTP responsesintgetHTTPOriginMode()Get current HTTP origin mode.IHTTPStreamerHTTPOriginSessionIdProvidergetHTTPOriginSessionIdProvider()Get HTTP origin sessionId provider used to determine unique HTTP origin sessions.intgetMaxHTTPSessionsPerTCPSession()Get maximum number of HTTP sessions tracked per-TCP sessionWMSPropertiesgetProperties()Get propertiesMediaCasterItemgetRepeaterMediaCasterDef()Get the live repeater media caster definitionintgetResponseOnIncompleteChunk()Get the response code used when an incomplete chunk (read error) is encountered.StringgetStreamTypeStr()Get stream typejava.util.Map<String,String>getUserHTTPHeaders()Get user HTTP headers.IVHostgetVHost()Get vhostvoidinit(IApplicationInstance appInstance, com.wowza.wms.httpstreamer.model.HTTPStreamerItem httpStreamerItem)Initialize contextbooleanisHTTPOriginOn()Returns true if HTTP origin mode is set to ON.booleanisStreamDomainProtectionActive()Return true if stream domain protection is onvoidsetCacheControlStatus4xx(String cacheControlStatus4xx)Set the cache-control header for 4xx HTTP responsesvoidsetHTTPOriginMode(int httpOriginMode)Set current HTTP origin mode.voidsetHTTPOriginSessionIdProvider(IHTTPStreamerHTTPOriginSessionIdProvider httpOriginSessionIdProvider)Set HTTP origin sessionId provider used to determine unique HTTP origin sessions.voidsetMaxHTTPSessionsPerTCPSession(int maxHTTPSessionsPerTCPSession)Set maximum number of HTTP sessions tracked per-TCP sessionvoidsetRepeaterMediaCasterDef(MediaCasterItem repeaterMediaCasterDef)Set the live repeater media caster definitionvoidsetResponseOnIncompleteChunk(int responseOnIncompleteChunk)Set the response code used when an incomplete chunk (read error) is encountered.voidsetStreamDomainProtectionActive(boolean streamDomainProtectionActive)Turn on/off stream domain protectionvoidsetStreamTypeStr(String streamTypeStr)Set stream typevoidsetUserHTTPHeader(String name, String value)Add a user HTTP header to the header map.
 
- 
- 
- 
Field Detail- 
HTTPORIGINMODE_OFFstatic final int HTTPORIGINMODE_OFF - See Also:
- Constant Field Values
 
 - 
HTTPORIGINMODE_AUTOstatic final int HTTPORIGINMODE_AUTO - See Also:
- Constant Field Values
 
 - 
HTTPORIGINMODE_ONstatic final int HTTPORIGINMODE_ON - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
initvoid init(IApplicationInstance appInstance, com.wowza.wms.httpstreamer.model.HTTPStreamerItem httpStreamerItem) Initialize context- Parameters:
- appInstance- application instance
- httpStreamerItem- HTTP streamer
 
 - 
getPropertiesWMSProperties getProperties() Get properties- Returns:
- properties
 
 - 
getAppInstanceIApplicationInstance getAppInstance() Get application instance- Returns:
- application instance
 
 - 
getVHostIVHost getVHost() Get vhost- Returns:
- vhost
 
 - 
getRepeaterMediaCasterDefMediaCasterItem getRepeaterMediaCasterDef() Get the live repeater media caster definition- Returns:
- live repeater media caster definition
 
 - 
setRepeaterMediaCasterDefvoid setRepeaterMediaCasterDef(MediaCasterItem repeaterMediaCasterDef) Set the live repeater media caster definition- Parameters:
- repeaterMediaCasterDef- live repeater media caster definition
 
 - 
getStreamTypeStrString getStreamTypeStr() Get stream type- Returns:
- stream type
 
 - 
setStreamTypeStrvoid setStreamTypeStr(String streamTypeStr) Set stream type- Parameters:
- streamTypeStr- stream type
 
 - 
isStreamDomainProtectionActiveboolean isStreamDomainProtectionActive() Return true if stream domain protection is on- Returns:
- true if stream domain protection is on
 
 - 
setStreamDomainProtectionActivevoid setStreamDomainProtectionActive(boolean streamDomainProtectionActive) Turn on/off stream domain protection- Parameters:
- streamDomainProtectionActive- true if stream domain protection is on
 
 - 
getHTTPOriginModeint getHTTPOriginMode() Get current HTTP origin mode. See HTTPORIGINMODE_ (auto is currently not supported)- Returns:
- HTTP origin mode
 
 - 
setHTTPOriginModevoid setHTTPOriginMode(int httpOriginMode) Set current HTTP origin mode. See HTTPORIGINMODE_ (auto is currently not supported)- Parameters:
- httpOriginMode- HTTP origin mode
 
 - 
isHTTPOriginOnboolean isHTTPOriginOn() Returns true if HTTP origin mode is set to ON.- Returns:
- true if HTTP origin mode is set to ON.
 
 - 
setUserHTTPHeadervoid setUserHTTPHeader(String name, String value)Add a user HTTP header to the header map. These headers will be added to every HTTP response.- Parameters:
- name- name
- value- value (null if no value)
 
 - 
getUserHTTPHeadersjava.util.Map<String,String> getUserHTTPHeaders() Get user HTTP headers.- Returns:
- header map
 
 - 
addQueryStrRemoveListvoid addQueryStrRemoveList(String name) Add a name to the list of query string parameters that will not be copied to the media URLs for HTTP streaming- Parameters:
- name- query name
 
 - 
filterQueryStrjava.util.Map<String,String> filterQueryStr(java.util.Map<String,String> map) Internal- Parameters:
- map- query map
- Returns:
- query map
 
 - 
getCacheControlStatus4xxString getCacheControlStatus4xx() Get the cache-control header for 4xx HTTP responses- Returns:
- cache-control header for 4xx HTTP responses
 
 - 
setCacheControlStatus4xxvoid setCacheControlStatus4xx(String cacheControlStatus4xx) Set the cache-control header for 4xx HTTP responses- Parameters:
- cacheControlStatus4xx- cache-control header for 4xx HTTP responses
 
 - 
getResponseOnIncompleteChunkint getResponseOnIncompleteChunk() Get the response code used when an incomplete chunk (read error) is encountered. If zero, chunk is sent.- Returns:
- response code
 
 - 
setResponseOnIncompleteChunkvoid setResponseOnIncompleteChunk(int responseOnIncompleteChunk) Set the response code used when an incomplete chunk (read error) is encountered. If zero, chunk is sent.- Parameters:
- responseOnIncompleteChunk- response code
 
 - 
getMaxHTTPSessionsPerTCPSessionint getMaxHTTPSessionsPerTCPSession() Get maximum number of HTTP sessions tracked per-TCP session- Returns:
- maximum number of HTTP sessions tracked per-TCP session
 
 - 
setMaxHTTPSessionsPerTCPSessionvoid setMaxHTTPSessionsPerTCPSession(int maxHTTPSessionsPerTCPSession) Set maximum number of HTTP sessions tracked per-TCP session- Parameters:
- maxHTTPSessionsPerTCPSession- maximum number of HTTP sessions tracked per-TCP session
 
 - 
getHTTPOriginSessionIdProviderIHTTPStreamerHTTPOriginSessionIdProvider getHTTPOriginSessionIdProvider() Get HTTP origin sessionId provider used to determine unique HTTP origin sessions.- Returns:
- sessionId provider
 
 - 
setHTTPOriginSessionIdProvidervoid setHTTPOriginSessionIdProvider(IHTTPStreamerHTTPOriginSessionIdProvider httpOriginSessionIdProvider) Set HTTP origin sessionId provider used to determine unique HTTP origin sessions.- Parameters:
- httpOriginSessionIdProvider- sessionId provider
 
 
- 
 
-