public interface IHTTPStreamerApplicationContext
IHTTPStreamerApplicationContext: HTTP streamer application context interface. Used by HTTP streaming adapter to store per-application information.
| Modifier and Type | Field | Description |
|---|---|---|
static int |
HTTPORIGINMODE_AUTO |
|
static int |
HTTPORIGINMODE_OFF |
|
static int |
HTTPORIGINMODE_ON |
| Modifier and Type | Method | Description |
|---|---|---|
void |
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
|
java.util.Map<String,String> |
filterQueryStr(java.util.Map<String,String> map) |
Internal
|
IApplicationInstance |
getAppInstance() |
Get application instance
|
String |
getCacheControlStatus4xx() |
Get the cache-control header for 4xx HTTP responses
|
int |
getHTTPOriginMode() |
Get current HTTP origin mode.
|
IHTTPStreamerHTTPOriginSessionIdProvider |
getHTTPOriginSessionIdProvider() |
Get HTTP origin sessionId provider used to determine unique HTTP origin sessions.
|
int |
getMaxHTTPSessionsPerTCPSession() |
Get maximum number of HTTP sessions tracked per-TCP session
|
WMSProperties |
getProperties() |
Get properties
|
MediaCasterItem |
getRepeaterMediaCasterDef() |
Get the live repeater media caster definition
|
int |
getResponseOnIncompleteChunk() |
Get the response code used when an incomplete chunk (read error) is encountered.
|
String |
getStreamTypeStr() |
Get stream type
|
java.util.Map<String,String> |
getUserHTTPHeaders() |
Get user HTTP headers.
|
IVHost |
getVHost() |
Get vhost
|
void |
init(IApplicationInstance appInstance,
com.wowza.wms.httpstreamer.model.HTTPStreamerItem httpStreamerItem) |
Initialize context
|
boolean |
isHTTPOriginOn() |
Returns true if HTTP origin mode is set to ON.
|
boolean |
isStreamDomainProtectionActive() |
Return true if stream domain protection is on
|
void |
setCacheControlStatus4xx(String cacheControlStatus4xx) |
Set the cache-control header for 4xx HTTP responses
|
void |
setHTTPOriginMode(int httpOriginMode) |
Set current HTTP origin mode.
|
void |
setHTTPOriginSessionIdProvider(IHTTPStreamerHTTPOriginSessionIdProvider httpOriginSessionIdProvider) |
Set HTTP origin sessionId provider used to determine unique HTTP origin sessions.
|
void |
setMaxHTTPSessionsPerTCPSession(int maxHTTPSessionsPerTCPSession) |
Set maximum number of HTTP sessions tracked per-TCP session
|
void |
setRepeaterMediaCasterDef(MediaCasterItem repeaterMediaCasterDef) |
Set the live repeater media caster definition
|
void |
setResponseOnIncompleteChunk(int responseOnIncompleteChunk) |
Set the response code used when an incomplete chunk (read error) is encountered.
|
void |
setStreamDomainProtectionActive(boolean streamDomainProtectionActive) |
Turn on/off stream domain protection
|
void |
setStreamTypeStr(String streamTypeStr) |
Set stream type
|
void |
setUserHTTPHeader(String name,
String value) |
Add a user HTTP header to the header map.
|
static final int HTTPORIGINMODE_AUTO
static final int HTTPORIGINMODE_OFF
static final int HTTPORIGINMODE_ON
void addQueryStrRemoveList(String name)
name - query namejava.util.Map<String,String> filterQueryStr(java.util.Map<String,String> map)
map - query mapIApplicationInstance getAppInstance()
String getCacheControlStatus4xx()
int getHTTPOriginMode()
IHTTPStreamerHTTPOriginSessionIdProvider getHTTPOriginSessionIdProvider()
int getMaxHTTPSessionsPerTCPSession()
WMSProperties getProperties()
MediaCasterItem getRepeaterMediaCasterDef()
int getResponseOnIncompleteChunk()
String getStreamTypeStr()
java.util.Map<String,String> getUserHTTPHeaders()
IVHost getVHost()
void init(IApplicationInstance appInstance, com.wowza.wms.httpstreamer.model.HTTPStreamerItem httpStreamerItem)
appInstance - application instancehttpStreamerItem - HTTP streamerboolean isHTTPOriginOn()
boolean isStreamDomainProtectionActive()
void setCacheControlStatus4xx(String cacheControlStatus4xx)
cacheControlStatus4xx - cache-control header for 4xx HTTP responsesvoid setHTTPOriginMode(int httpOriginMode)
httpOriginMode - HTTP origin modevoid setHTTPOriginSessionIdProvider(IHTTPStreamerHTTPOriginSessionIdProvider httpOriginSessionIdProvider)
httpOriginSessionIdProvider - sessionId providervoid setMaxHTTPSessionsPerTCPSession(int maxHTTPSessionsPerTCPSession)
maxHTTPSessionsPerTCPSession - maximum number of HTTP sessions tracked per-TCP sessionvoid setRepeaterMediaCasterDef(MediaCasterItem repeaterMediaCasterDef)
repeaterMediaCasterDef - live repeater media caster definitionvoid setResponseOnIncompleteChunk(int responseOnIncompleteChunk)
responseOnIncompleteChunk - response codevoid setStreamDomainProtectionActive(boolean streamDomainProtectionActive)
streamDomainProtectionActive - true if stream domain protection is onvoid setStreamTypeStr(String streamTypeStr)
streamTypeStr - stream typevoid setUserHTTPHeader(String name,
String value)
name - namevalue - value (null if no value)