Package com.wowza.wms.httpstreamer.model
Interface IHTTPStreamerSession
- 
- All Known Implementing Classes:
- com.wowza.wms.httpstreamer.model.HTTPStreamerSessionBase,- HTTPStreamerSessionCupertino,- HTTPStreamerSessionDirect,- HTTPStreamerSessionMPEGDash,- HTTPStreamerSessionTS,- HTTPStreamerSessionWebM
 
 public interface IHTTPStreamerSessionIHTTPStreamerSession: HTTP streaming session interface 
- 
- 
Field SummaryFields Modifier and Type Field Description static intSESSIONFORMAT_CMAFstatic intSESSIONFORMAT_CMAF_LLstatic intSESSIONFORMAT_DEFAULTstatic intSESSIONPROTOCOL_COUNTstatic intSESSIONPROTOCOL_CUPERTINOSTREAMINGstatic intSESSIONPROTOCOL_DIRECTSTREAMINGstatic intSESSIONPROTOCOL_DVRCHUNKSTREAMINGstatic intSESSIONPROTOCOL_MPEGDASHSTREAMINGstatic intSESSIONPROTOCOL_SANJOSESTREAMINGstatic intSESSIONPROTOCOL_SMOOTHSTREAMINGstatic intSESSIONPROTOCOL_TSSTREAMINGstatic intSESSIONPROTOCOL_UNKNOWNstatic intSESSIONPROTOCOL_WEBMSTREAMINGstatic intSESSIONTYPE_LIVEstatic intSESSIONTYPE_LIVEDVRstatic intSESSIONTYPE_UNKNOWNstatic intSESSIONTYPE_VOD
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidacceptSession()Accept the HTTP session.voidaddHTTPSessionToTCPSession(com.wowza.wms.server.RtmpSessionInfo wmsSessionInfo, IHTTPStreamerApplicationContext appContext)Add HTTP session to TCP session for trackingvoidaddIOPerformance(IOPerformanceCounter totalIOPerformanceResult)Internal user, keep track of IO performancevoidaddIOPerformance2(IOPerformanceCounter totalIOPerformanceResult)Internal user, keep track of IO performancevoidaddStreamDomainStr(String streamDomainStr)Internal user, add stream namevoidaddStreamDomainStrs(java.util.List<String> streamNames)Internal user, add stream namesvoidaddTranscoderVODListener(IHTTPStreamerTranscoderVODActionNotify listener)Add VOD Transcoder action listenervoidaddUserHTTPHeaders(IHTTPResponse resp)InternalbooleancheckAndSetPlayLogged()If play has not been logged return false, else returns true, sets play has been loggedvoidclearLoggingValues()Internal user, clear logging valuesbooleancontainsStreamDomainStr(String streamDomainStr)Internal user, test stream namebooleancontainsStreamNameParts(String streamName)Return true if stream name in stream name partsvoiddoSessionRedirect(IHTTPResponse resp)InternalvoiddoSessionRedirect(IHTTPResponse resp, String redirectSessionURL, String redirectSessionContentType, int redirectSessionCode)InternalvoidextractHTTPRequestInfo(IHTTPRequest req)Extract information from HTTP requestbooleangetAndClearNotifyCreate()IApplicationInstancegetAppInstance()Get the application instance associated with this HTTP sessioncom.wowza.wms.client.ConnectionHoldergetConnectionHolder()Connection holder for this sessionStringgetCookieStr()Get cookie stringcom.wowza.wms.httpstreamer.model.HTTPCORSHeadersgetCORSHeaders()com.wowza.wms.httpstreamer.model.DvrSessionInfogetDvrSessionInfo()This information is used to manage the connection to the DVR store.ElapsedTimergetElapsedTime()Get the elapsed timer to see how long this session has been runningcom.wowza.wms.httpstreamer.model.HTTPStreamerFileInfogetFileInfo(String streamName)Get the file information if video on demand streamingStringgetForwardedIP()Get the x-[real|forwarded] IP addressStringgetHTTPHeader(String name)Get a HTTP header value such as 'Content-Length'java.util.Map<String,String>getHTTPHeaderMap()Get a copy of the HTTP request header mapjava.util.Set<String>getHTTPHeaderNames()Get a Set of the header namesintgetHTTPIntHeader(String name)Get a HTTP header value such as 'Content-Length' and return as intIHTTPStreamerAdaptergetHTTPStreamerAdapter()Get the HTTP streaming adapter associated with this HTTP sessionIOPerformanceCountergetIOPerformanceCounter()Get IO performance counterStringgetIpAddress()Get the IP addresslonggetLastRequest()Get the last timestamp of the last Io requestStringgetLiveStreamingPacketizer()Get the live stream packetizer nameObjectgetLock()Get the synchronization lock for this HTTP sessionlonggetPlayDuration()Get the play duration (milliseconds) for video on demand playback.longgetPlaySeek()Get the seek location (milliseconds) where playback should startlonggetPlayStart()Get the play start time offset (milliseconds) for video on demand playback.WMSPropertiesgetProperties()Get the properties associated with this sessionStringgetQueryStr()Get query stringbyte[]getRedirectSessionBody()Get redirect session bodyintgetRedirectSessionCode()Get session redirect HTTP response code (default 302)StringgetRedirectSessionContentType()Get redirect session HTTP Content-TypeStringgetRedirectSessionURL()Get redirect session URLStringgetReferrer()Get referrerStringgetServerIp()Get server IP addressintgetServerPort()Get server portintgetSessionFormat()Get format, see SESSIONFORMAT_*StringgetSessionId()Get session idintgetSessionProtocol()Get protocol, see SESSIONPROTOCOL_*intgetSessionTimeout()Get the session timeout for this session (milliseconds)intgetSessionType()Get session type: see SESSIONTYPE_*IMediaStreamgetStream()Get the IMediaStream associated with this HTTP sessionStringgetStreamExt()Get stream extensionStringgetStreamName()Get stream namecom.wowza.wms.httpstreamer.model.HTTPStreamerStreamNamePartsgetStreamNameParts(String streamName)Break the stream name into partslonggetStreamPosition()Get stream positionStringgetTimeRunning()Get the time this session has been running (milliseconds)doublegetTimeRunningSeconds()Get the time this session has been running (seconds)IHTTPStreamerTranscoderVODIndexgetTranscoderVODIndex()Get the VOD Transcoder index informationIHTTPStreamerTranscoderVODDestinationIndexgetTranscoderVODIndex(String bitrateStr)Get VOD transcoder index for given bitratejava.util.Map<String,IHTTPStreamerTranscoderVODDestinationIndex>getTranscoderVODIndexDestinationsMap()Get the VOD Transcoder destination mapjava.util.List<String>getTranscoderVODIndexDestinationsOrder()Get the list of VOD Transcoder destinations in playlist ordercom.wowza.wms.transcoder.vod.TranscoderVODSessiongetTranscoderVODSession()Get the vod transcoder session associated with this HTTP sessionStringgetUri()Get the URI associated with initial requestStringgetUserAgent()Get user agentjava.util.Map<String,String>getUserHTTPHeaders()Get user HTTP header.StringgetUserQueryStr()This query string will be added to URLs used in HTTP streamingIVHostgetVHost()Get vhostStringgetVODTranscodeNGRP()Get the VOD Transcoder NGRP namevoidindexTranscoderVOD(IHTTPStreamerApplicationContext appContext, String vodTranscodeNGRP)Index the HTTP session for VOD transcoder streamingbooleanisAcceptSession()Return true if this session has not been rejectedbooleanisActive()Is this session active, false after shutdownbooleanisDelete()Return true if this session is flagged for deletion.booleanisDeleteSession()Get is session to be deleted.booleanisFileInfo(String streamName)Return true if the is file information for a given stream namebooleanisHTTPOrigin()Return true if session in an HTTP origin sessionbooleanisPlayLogged()true, if play has been loggedbooleanisRedirectSession()Is session redirectbooleanisSecure()Returns true if the stream is being streamed over an SSL portbooleanisTimeout(long timecode)Return true if this session is timed out.booleanisTimeoutSession()Get is session timeout.booleanisValidated()Has this session been validatedbooleanisValidStreamDomainStr(String streamDomainStr)Internal user, is stream name valid for HTTP sessionvoidlockRepeaterStreams(java.util.List<String> streamNames, String liveStreamPacketizer, String liveStreamRepeater, String streamTypeStr)Internal user, lock in reapter streamsvoidnotifyTranscoderVODFillChunkStart(com.wowza.wms.transcoder.vod.TranscoderVODSession transcoderVODSession, com.wowza.wms.transcoder.vod.TranscoderVODDestination transcoderVODDestination, com.wowza.wms.httpstreamer.model.MediaReaderH264Chunk mediaReaderChunk, com.wowza.wms.transcoder.vod.TranscoderVODChunkContext transcoderVODChunkContext)Called to notify of VOD Transcoder fill chunk startvoidnotifyTranscoderVODFillChunkStop(com.wowza.wms.transcoder.vod.TranscoderVODSession transcoderVODSession, com.wowza.wms.transcoder.vod.TranscoderVODChunkContext transcoderVODChunkContext)Called to notify of VOD Transcoder fill stopvoidnotifyTranscoderVODFillChunkTranscode(com.wowza.wms.transcoder.vod.TranscoderVODSession transcoderVODSession, com.wowza.wms.transcoder.vod.TranscoderVODChunkContext transcoderVODChunkContext, java.util.List<com.wowza.wms.httpstreamer.model.MediaReaderH264Packet> packets)Called to notify of VOD Transcoder fill chunkvoidputFileInfo(String streamName, com.wowza.wms.httpstreamer.model.HTTPStreamerFileInfo fileInfo)Set the file informationvoidputStreamNameParts(String streamName, com.wowza.wms.httpstreamer.model.HTTPStreamerStreamNameParts streamNameParts)Add stream name to stream name partsvoidredirectSession(String redirectSessionURL)Redirect sessionvoidredirectSession(String redirectSessionURL, int redirectSessionCode)Redirect sessionvoidrejectSession()Reject this HTTP session.voidremoveStreamDomainStr(String streamDomainStr)Internal user, remove stream namebooleanremoveTranscoderVODListener(IHTTPStreamerTranscoderVODActionNotify listener)Remove VOD Transcoder action listenervoidsetAcceptSession(boolean acceptSession)Set to false to reject sessionvoidsetActive(boolean isActive)Set session activevoidsetAppInstance(IApplicationInstance appInstance)Set the application instance associated with this HTTP sessionvoidsetCookieStr(String cookieStr)Set cookie stringvoidsetDeleteSession()Set session to be deleted.voidsetDvrSessionInfo(com.wowza.wms.httpstreamer.model.DvrSessionInfo dvr)This information is used to manage the connection to the DVR store.voidsetForwardedIP(String ipAddress)Set the x-[real|forwarded] IP addressvoidsetHTTPOrigin(boolean isHTTPOrigin)Set to true if HTTP origin sessionvoidsetHTTPStreamerAdapter(IHTTPStreamerAdapter httpStreamerAdapter)Set the HTTP streaming adapter associated with this HTTP sessionvoidsetIpAddress(String ipAddress)Set the IP addressvoidsetLiveStreamingPacketizer(String liveStreamingPacketizer)Set the live stream packetizer namevoidsetPlayDuration(long playDuration)Set the play duration (milliseconds) for video on demand playback.voidsetPlayLogged(boolean isPlayLogged)true, if play has been loggedvoidsetPlaySeek(long playSeek)Set the seek location (milliseconds) where playback should startvoidsetPlayStart(long playStart)Set the play start time offset (milliseconds) for video on demand playback.voidsetQueryStr(String queryStr)Set query stringvoidsetRedirectSession(boolean redirectSession)Set session redirectvoidsetRedirectSessionBody(byte[] redirectSessionBody)Set redirect session bodyvoidsetRedirectSessionCode(int redirectSessionCode)Set session redirect HTTP response code (default 302)voidsetRedirectSessionContentType(String redirectSessionContentType)Set redirect session HTTP Content-TypevoidsetRedirectSessionURL(String redirectSessionURL)Set redirect session URLvoidsetReferrer(String referrer)Set referrervoidsetSecure(boolean isSecure)Set to true if the stream is being streamed over an SSL portvoidsetServerIp(String serverIp)Set server IP addressvoidsetServerPort(int serverPort)Set server portvoidsetSessionFormat(int sessionFormat)Set format, see SESSIONFORMAT_*voidsetSessionId(String sessionId)Set session idvoidsetSessionProtocol(int sessionProtocol)Set protocol, see SESSIONPROTOCOL_*voidsetSessionTimeout(int sessionTimeout)Set the session timeout for this session (milliseconds)voidsetSessionType(int sessionType)Set session type: see SESSIONTYPE_*voidsetStream(IMediaStream stream)Set the IMediaStream associated with this HTTP sessionvoidsetStreamExt(String streamExt)Set stream extensionvoidsetStreamName(String streamName)Set stream namevoidsetStreamPosition(long streamPosition)Set stream position (will not cause seek)voidsetTimeoutSession(boolean timeoutSession)Set is session timeout.voidsetTranscoderVODIndex(IHTTPStreamerTranscoderVODIndex transcoderVODIndex)Set the VOD Transcoder index informationvoidsetTranscoderVODSession(com.wowza.wms.transcoder.vod.TranscoderVODSession transcoderVODSession)Set the vod transcoder session associated with this HTTP sessionvoidsetUri(String uri)Set the URI associated with initial requestvoidsetUserAgent(String userAgent)Set user agentvoidsetUserHTTPHeader(String name, String value)Set user HTTP header.voidsetUserQueryStr(String userQueryStr)This query string will be added to URLs used in HTTP streamingvoidsetVHost(IVHost vhost)Set vhostvoidsetVODTranscodeNGRP(String vodTranscodeNGRP)Set the VOD Transcoder NGRP namevoidshutdown()Called then the HTTP session is shutting downvoidtouch(long timecode)Touch this session to keep it active.voidupdateLoggingValues()Internal user, update logging valuesStringvalidStreamDomainToString()Return the valid domain strings as a string
 
- 
- 
- 
Field Detail- 
SESSIONTYPE_UNKNOWNstatic final int SESSIONTYPE_UNKNOWN - See Also:
- Constant Field Values
 
 - 
SESSIONTYPE_LIVEstatic final int SESSIONTYPE_LIVE - See Also:
- Constant Field Values
 
 - 
SESSIONTYPE_VODstatic final int SESSIONTYPE_VOD - See Also:
- Constant Field Values
 
 - 
SESSIONTYPE_LIVEDVRstatic final int SESSIONTYPE_LIVEDVR - See Also:
- Constant Field Values
 
 - 
SESSIONPROTOCOL_UNKNOWNstatic final int SESSIONPROTOCOL_UNKNOWN - See Also:
- Constant Field Values
 
 - 
SESSIONPROTOCOL_SMOOTHSTREAMINGstatic final int SESSIONPROTOCOL_SMOOTHSTREAMING - See Also:
- Constant Field Values
 
 - 
SESSIONPROTOCOL_CUPERTINOSTREAMINGstatic final int SESSIONPROTOCOL_CUPERTINOSTREAMING - See Also:
- Constant Field Values
 
 - 
SESSIONPROTOCOL_SANJOSESTREAMINGstatic final int SESSIONPROTOCOL_SANJOSESTREAMING - See Also:
- Constant Field Values
 
 - 
SESSIONPROTOCOL_WEBMSTREAMINGstatic final int SESSIONPROTOCOL_WEBMSTREAMING - See Also:
- Constant Field Values
 
 - 
SESSIONPROTOCOL_MPEGDASHSTREAMINGstatic final int SESSIONPROTOCOL_MPEGDASHSTREAMING - See Also:
- Constant Field Values
 
 - 
SESSIONPROTOCOL_DVRCHUNKSTREAMINGstatic final int SESSIONPROTOCOL_DVRCHUNKSTREAMING - See Also:
- Constant Field Values
 
 - 
SESSIONPROTOCOL_DIRECTSTREAMINGstatic final int SESSIONPROTOCOL_DIRECTSTREAMING - See Also:
- Constant Field Values
 
 - 
SESSIONPROTOCOL_TSSTREAMINGstatic final int SESSIONPROTOCOL_TSSTREAMING - See Also:
- Constant Field Values
 
 - 
SESSIONPROTOCOL_COUNTstatic final int SESSIONPROTOCOL_COUNT - See Also:
- Constant Field Values
 
 - 
SESSIONFORMAT_DEFAULTstatic final int SESSIONFORMAT_DEFAULT - See Also:
- Constant Field Values
 
 - 
SESSIONFORMAT_CMAFstatic final int SESSIONFORMAT_CMAF - See Also:
- Constant Field Values
 
 - 
SESSIONFORMAT_CMAF_LLstatic final int SESSIONFORMAT_CMAF_LL - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getSessionIdString getSessionId() Get session id- Returns:
- session id
 
 - 
setSessionIdvoid setSessionId(String sessionId) Set session id- Parameters:
- sessionId- session id
 
 - 
getVHostIVHost getVHost() Get vhost- Returns:
- vhost
 
 - 
setVHostvoid setVHost(IVHost vhost) Set vhost- Parameters:
- vhost- vhost
 
 - 
touchvoid touch(long timecode) Touch this session to keep it active.- Parameters:
- timecode- timecode of touch - System.currentTimeMillis();
 
 - 
isTimeoutboolean isTimeout(long timecode) Return true if this session is timed out.- Parameters:
- timecode- last touch - System.currentTimeMillis();
- Returns:
- true, if timed out
 
 - 
isDeleteboolean isDelete() Return true if this session is flagged for deletion.- Returns:
- true, if flagged for deletion
 
 - 
getLockObject getLock() Get the synchronization lock for this HTTP session- Returns:
- synchronization lock
 
 - 
shutdownvoid shutdown() Called then the HTTP session is shutting down
 - 
isActiveboolean isActive() Is this session active, false after shutdown- Returns:
- true if session is active
 
 - 
setActivevoid setActive(boolean isActive) Set session active- Parameters:
- isActive- session active
 
 - 
getStreamIMediaStream getStream() Get the IMediaStream associated with this HTTP session- Returns:
- IMediaStream associated with this HTTP session
 
 - 
setStreamvoid setStream(IMediaStream stream) Set the IMediaStream associated with this HTTP session- Parameters:
- stream- IMediaStream associated with this HTTP session
 
 - 
isTimeoutSessionboolean isTimeoutSession() Get is session timeout.- Returns:
- true if this session is timed out
 
 - 
setTimeoutSessionvoid setTimeoutSession(boolean timeoutSession) Set is session timeout.- Parameters:
- timeoutSession- true if this session is timed out
 
 - 
isDeleteSessionboolean isDeleteSession() Get is session to be deleted.- Returns:
- true if this session is flagged for deletion
 
 - 
setDeleteSessionvoid setDeleteSession() Set session to be deleted.
 - 
getSessionTimeoutint getSessionTimeout() Get the session timeout for this session (milliseconds)- Returns:
- session timeout for this session (milliseconds)
 
 - 
setSessionTimeoutvoid setSessionTimeout(int sessionTimeout) Set the session timeout for this session (milliseconds)- Parameters:
- sessionTimeout- session timeout for this session (milliseconds)
 
 - 
isValidatedboolean isValidated() Has this session been validated- Returns:
- true, if validated
 
 - 
checkAndSetPlayLoggedboolean checkAndSetPlayLogged() If play has not been logged return false, else returns true, sets play has been logged- Returns:
- true, if play has been logged
 
 - 
isPlayLoggedboolean isPlayLogged() true, if play has been logged- Returns:
- true, if play has been logged
 
 - 
setPlayLoggedvoid setPlayLogged(boolean isPlayLogged) true, if play has been logged- Parameters:
- isPlayLogged- true, if play has been logged
 
 - 
addIOPerformancevoid addIOPerformance(IOPerformanceCounter totalIOPerformanceResult) Internal user, keep track of IO performance- Parameters:
- totalIOPerformanceResult- IO performance
 
 - 
addIOPerformance2void addIOPerformance2(IOPerformanceCounter totalIOPerformanceResult) Internal user, keep track of IO performance- Parameters:
- totalIOPerformanceResult- IO performance
 
 - 
getConnectionHoldercom.wowza.wms.client.ConnectionHolder getConnectionHolder() Connection holder for this session- Returns:
- connection holder
 
 - 
getHTTPStreamerAdapterIHTTPStreamerAdapter getHTTPStreamerAdapter() Get the HTTP streaming adapter associated with this HTTP session- Returns:
- HTTP streaming adapter
 
 - 
setHTTPStreamerAdaptervoid setHTTPStreamerAdapter(IHTTPStreamerAdapter httpStreamerAdapter) Set the HTTP streaming adapter associated with this HTTP session- Parameters:
- httpStreamerAdapter- HTTP streaming adapter
 
 - 
getAppInstanceIApplicationInstance getAppInstance() Get the application instance associated with this HTTP session- Returns:
- application instance associated with this HTTP session
 
 - 
setAppInstancevoid setAppInstance(IApplicationInstance appInstance) Set the application instance associated with this HTTP session- Parameters:
- appInstance- application instance associated with this HTTP session
 
 - 
getSessionTypeint getSessionType() Get session type: see SESSIONTYPE_*- Returns:
- session type: see SESSIONTYPE_*
 
 - 
setSessionTypevoid setSessionType(int sessionType) Set session type: see SESSIONTYPE_*- Parameters:
- sessionType- session type: see SESSIONTYPE_*
 
 - 
getLiveStreamingPacketizerString getLiveStreamingPacketizer() Get the live stream packetizer name- Returns:
- live stream packetizer name
 
 - 
setLiveStreamingPacketizervoid setLiveStreamingPacketizer(String liveStreamingPacketizer) Set the live stream packetizer name- Parameters:
- liveStreamingPacketizer- live stream packetizer name
 
 - 
getIpAddressString getIpAddress() Get the IP address- Returns:
- IP address
 
 - 
setIpAddressvoid setIpAddress(String ipAddress) Set the IP address- Parameters:
- ipAddress- IP address
 
 - 
getForwardedIPString getForwardedIP() Get the x-[real|forwarded] IP address- Returns:
- IP address
 
 - 
setForwardedIPvoid setForwardedIP(String ipAddress) Set the x-[real|forwarded] IP address- Parameters:
- ipAddress- IP address
 
 - 
updateLoggingValuesvoid updateLoggingValues() Internal user, update logging values
 - 
clearLoggingValuesvoid clearLoggingValues() Internal user, clear logging values
 - 
getSessionProtocolint getSessionProtocol() Get protocol, see SESSIONPROTOCOL_*- Returns:
- protocol, see SESSIONPROTOCOL_*
 
 - 
setSessionProtocolvoid setSessionProtocol(int sessionProtocol) Set protocol, see SESSIONPROTOCOL_*- Parameters:
- sessionProtocol- protocol, see SESSIONPROTOCOL_*
 
 - 
getSessionFormatint getSessionFormat() Get format, see SESSIONFORMAT_*- Returns:
- format, see SESSIONFORMAT_*
 
 - 
setSessionFormatvoid setSessionFormat(int sessionFormat) Set format, see SESSIONFORMAT_*- Parameters:
- sessionFormat- format, see SESSIONFORMAT_*
 
 - 
getServerIpString getServerIp() Get server IP address- Returns:
- server IP address
 
 - 
setServerIpvoid setServerIp(String serverIp) Set server IP address- Parameters:
- serverIp- server IP address
 
 - 
getServerPortint getServerPort() Get server port- Returns:
- server port
 
 - 
setServerPortvoid setServerPort(int serverPort) Set server port- Parameters:
- serverPort- server port
 
 - 
getUserAgentString getUserAgent() Get user agent- Returns:
- user agent
 
 - 
setUserAgentvoid setUserAgent(String userAgent) Set user agent- Parameters:
- userAgent- user agent
 
 - 
getUriString getUri() Get the URI associated with initial request- Returns:
- URI associated with initial request
 
 - 
setUrivoid setUri(String uri) Set the URI associated with initial request- Parameters:
- uri- URI associated with initial request
 
 - 
getReferrerString getReferrer() Get referrer- Returns:
- referrer
 
 - 
setReferrervoid setReferrer(String referrer) Set referrer- Parameters:
- referrer- referrer
 
 - 
getQueryStrString getQueryStr() Get query string- Returns:
- query string
 
 - 
setQueryStrvoid setQueryStr(String queryStr) Set query string- Parameters:
- queryStr- query string
 
 - 
lockRepeaterStreamsvoid lockRepeaterStreams(java.util.List<String> streamNames, String liveStreamPacketizer, String liveStreamRepeater, String streamTypeStr)Internal user, lock in reapter streams- Parameters:
- streamNames- list of stream names
- liveStreamPacketizer- live stream packetizer name
- liveStreamRepeater- live repeater name
- streamTypeStr- stream type
 
 - 
rejectSessionvoid rejectSession() Reject this HTTP session. No further processing should occur
 - 
acceptSessionvoid acceptSession() Accept the HTTP session.
 - 
isAcceptSessionboolean isAcceptSession() Return true if this session has not been rejected- Returns:
- true if this session has not been rejected
 
 - 
setAcceptSessionvoid setAcceptSession(boolean acceptSession) Set to false to reject session- Parameters:
- acceptSession- false to reject session
 
 - 
getCookieStrString getCookieStr() Get cookie string- Returns:
- cookie string
 
 - 
setCookieStrvoid setCookieStr(String cookieStr) Set cookie string- Parameters:
- cookieStr- cookie string
 
 - 
getStreamNameString getStreamName() Get stream name- Returns:
- stream name
 
 - 
setStreamNamevoid setStreamName(String streamName) Set stream name- Parameters:
- streamName- stream name
 
 - 
getStreamExtString getStreamExt() Get stream extension- Returns:
- stream extension
 
 - 
setStreamExtvoid setStreamExt(String streamExt) Set stream extension- Parameters:
- streamExt- stream extension
 
 - 
getStreamNamePartscom.wowza.wms.httpstreamer.model.HTTPStreamerStreamNameParts getStreamNameParts(String streamName) Break the stream name into parts- Parameters:
- streamName- stream name
- Returns:
- stream name parts
 
 - 
containsStreamNamePartsboolean containsStreamNameParts(String streamName) Return true if stream name in stream name parts- Parameters:
- streamName- stream name
- Returns:
- true if stream name in stream name parts
 
 - 
putStreamNamePartsvoid putStreamNameParts(String streamName, com.wowza.wms.httpstreamer.model.HTTPStreamerStreamNameParts streamNameParts)Add stream name to stream name parts- Parameters:
- streamName- stream name
- streamNameParts- stream name parts
 
 - 
getStreamPositionlong getStreamPosition() Get stream position- Returns:
- stream position
 
 - 
setStreamPositionvoid setStreamPosition(long streamPosition) Set stream position (will not cause seek)- Parameters:
- streamPosition- stream position
 
 - 
getIOPerformanceCounterIOPerformanceCounter getIOPerformanceCounter() Get IO performance counter- Returns:
- IO performance counter
 
 - 
getFileInfocom.wowza.wms.httpstreamer.model.HTTPStreamerFileInfo getFileInfo(String streamName) Get the file information if video on demand streaming- Parameters:
- streamName- stream name
- Returns:
- file information
 
 - 
putFileInfovoid putFileInfo(String streamName, com.wowza.wms.httpstreamer.model.HTTPStreamerFileInfo fileInfo)Set the file information- Parameters:
- streamName- stream name
- fileInfo- file information
 
 - 
isFileInfoboolean isFileInfo(String streamName) Return true if the is file information for a given stream name- Parameters:
- streamName- stream name
- Returns:
- true if the is file information for a given stream name
 
 - 
isValidStreamDomainStrboolean isValidStreamDomainStr(String streamDomainStr) Internal user, is stream name valid for HTTP session- Parameters:
- streamDomainStr- stream name
- Returns:
- true if valid
 
 - 
validStreamDomainToStringString validStreamDomainToString() Return the valid domain strings as a string- Returns:
- valid domain strings as a string
 
 - 
containsStreamDomainStrboolean containsStreamDomainStr(String streamDomainStr) Internal user, test stream name- Parameters:
- streamDomainStr- stream name
- Returns:
- true if valid
 
 - 
removeStreamDomainStrvoid removeStreamDomainStr(String streamDomainStr) Internal user, remove stream name- Parameters:
- streamDomainStr- stream name
 
 - 
addStreamDomainStrvoid addStreamDomainStr(String streamDomainStr) Internal user, add stream name- Parameters:
- streamDomainStr- stream name
 
 - 
addStreamDomainStrsvoid addStreamDomainStrs(java.util.List<String> streamNames) Internal user, add stream names- Parameters:
- streamNames- stream names
 
 - 
getElapsedTimeElapsedTimer getElapsedTime() Get the elapsed timer to see how long this session has been running- Returns:
- elapsed timer (milliseconds)
 
 - 
getTimeRunningString getTimeRunning() Get the time this session has been running (milliseconds)- Returns:
- time this session has been running (milliseconds)
 
 - 
getTimeRunningSecondsdouble getTimeRunningSeconds() Get the time this session has been running (seconds)- Returns:
- time this session has been running (seconds)
 
 - 
getPropertiesWMSProperties getProperties() Get the properties associated with this session- Returns:
- properties
 
 - 
getUserQueryStrString getUserQueryStr() This query string will be added to URLs used in HTTP streaming- Returns:
- user query string
 
 - 
setUserQueryStrvoid setUserQueryStr(String userQueryStr) This query string will be added to URLs used in HTTP streaming- Parameters:
- userQueryStr- user query string
 
 - 
setDvrSessionInfovoid setDvrSessionInfo(com.wowza.wms.httpstreamer.model.DvrSessionInfo dvr) This information is used to manage the connection to the DVR store.- Parameters:
- dvr- The DVR session info.
 
 - 
getDvrSessionInfocom.wowza.wms.httpstreamer.model.DvrSessionInfo getDvrSessionInfo() This information is used to manage the connection to the DVR store.- Returns:
- DVR session info.
 
 - 
extractHTTPRequestInfovoid extractHTTPRequestInfo(IHTTPRequest req) Extract information from HTTP request- Parameters:
- req- HTTP request
 
 - 
getHTTPHeaderMapjava.util.Map<String,String> getHTTPHeaderMap() Get a copy of the HTTP request header map- Returns:
- copy of the HTTP request header map
 
 - 
getHTTPHeaderString getHTTPHeader(String name) Get a HTTP header value such as 'Content-Length'- Parameters:
- name- header name
- Returns:
- header value
 
 - 
getHTTPIntHeaderint getHTTPIntHeader(String name) Get a HTTP header value such as 'Content-Length' and return as int- Parameters:
- name- header name
- Returns:
- header value
 
 - 
getHTTPHeaderNamesjava.util.Set<String> getHTTPHeaderNames() Get a Set of the header names- Returns:
- Set of header names
 
 - 
getPlayStartlong getPlayStart() Get the play start time offset (milliseconds) for video on demand playback.- Returns:
- play start time offset (milliseconds)
 
 - 
setPlayStartvoid setPlayStart(long playStart) Set the play start time offset (milliseconds) for video on demand playback.- Parameters:
- playStart- play start time offset (milliseconds)
 
 - 
getPlayDurationlong getPlayDuration() Get the play duration (milliseconds) for video on demand playback. A values of -1 means play to end.- Returns:
- play duration (milliseconds)
 
 - 
setPlayDurationvoid setPlayDuration(long playDuration) Set the play duration (milliseconds) for video on demand playback. A values of -1 means play to end.- Parameters:
- playDuration- play duration (milliseconds)
 
 - 
getPlaySeeklong getPlaySeek() Get the seek location (milliseconds) where playback should start- Returns:
- seek location (milliseconds)
 
 - 
setPlaySeekvoid setPlaySeek(long playSeek) Set the seek location (milliseconds) where playback should start- Parameters:
- playSeek- seek location (milliseconds)
 
 - 
setUserHTTPHeadervoid setUserHTTPHeader(String name, String value)Set user HTTP header. This header value will be added to all HTTP responses- Parameters:
- name- name
- value- value
 
 - 
getUserHTTPHeadersjava.util.Map<String,String> getUserHTTPHeaders() Get user HTTP header. This header value will be added to all HTTP responses- Returns:
- header map
 
 - 
addUserHTTPHeadersvoid addUserHTTPHeaders(IHTTPResponse resp) Internal- Parameters:
- resp- response
 
 - 
getCORSHeaderscom.wowza.wms.httpstreamer.model.HTTPCORSHeaders getCORSHeaders() - Returns:
- HTTPCORSHeaders object
 
 - 
doSessionRedirectvoid doSessionRedirect(IHTTPResponse resp) Internal- Parameters:
- resp- response
 
 - 
doSessionRedirectvoid doSessionRedirect(IHTTPResponse resp, String redirectSessionURL, String redirectSessionContentType, int redirectSessionCode) Internal- Parameters:
- resp- response
- redirectSessionURL- redirect session URL
- redirectSessionContentType-
- redirectSessionCode- redirect session response code (default 302)
 
 - 
isRedirectSessionboolean isRedirectSession() Is session redirect- Returns:
- session redirect
 
 - 
setRedirectSessionvoid setRedirectSession(boolean redirectSession) Set session redirect- Parameters:
- redirectSession- session redirect
 
 - 
getRedirectSessionCodeint getRedirectSessionCode() Get session redirect HTTP response code (default 302)- Returns:
- session redirect HTTP response code
 
 - 
setRedirectSessionCodevoid setRedirectSessionCode(int redirectSessionCode) Set session redirect HTTP response code (default 302)- Parameters:
- redirectSessionCode- session redirect HTTP response code
 
 - 
getRedirectSessionURLString getRedirectSessionURL() Get redirect session URL- Returns:
- redirect session URL
 
 - 
setRedirectSessionURLvoid setRedirectSessionURL(String redirectSessionURL) Set redirect session URL- Parameters:
- redirectSessionURL- redirect session URL
 
 - 
redirectSessionvoid redirectSession(String redirectSessionURL) Redirect session- Parameters:
- redirectSessionURL- redirect session URL
 
 - 
redirectSessionvoid redirectSession(String redirectSessionURL, int redirectSessionCode)Redirect session- Parameters:
- redirectSessionURL- redirect session URL
- redirectSessionCode- redirect session response code (default 302)
 
 - 
getRedirectSessionBodybyte[] getRedirectSessionBody() Get redirect session body- Returns:
- redirect session body
 
 - 
setRedirectSessionBodyvoid setRedirectSessionBody(byte[] redirectSessionBody) Set redirect session body- Parameters:
- redirectSessionBody- redirect session body
 
 - 
getRedirectSessionContentTypeString getRedirectSessionContentType() Get redirect session HTTP Content-Type- Returns:
- redirect session HTTP Content-Type
 
 - 
setRedirectSessionContentTypevoid setRedirectSessionContentType(String redirectSessionContentType) Set redirect session HTTP Content-Type- Parameters:
- redirectSessionContentType-
 
 - 
getLastRequestlong getLastRequest() Get the last timestamp of the last Io request- Returns:
- last timestamp of the last Io request (milliseconds)
 
 - 
isHTTPOriginboolean isHTTPOrigin() Return true if session in an HTTP origin session- Returns:
- true if session in an HTTP origin session
 
 - 
setHTTPOriginvoid setHTTPOrigin(boolean isHTTPOrigin) Set to true if HTTP origin session- Parameters:
- isHTTPOrigin- true if HTTP origin session
 
 - 
getAndClearNotifyCreateboolean getAndClearNotifyCreate() 
 - 
getTranscoderVODSessioncom.wowza.wms.transcoder.vod.TranscoderVODSession getTranscoderVODSession() Get the vod transcoder session associated with this HTTP session- Returns:
- vod transcoder session
 
 - 
setTranscoderVODSessionvoid setTranscoderVODSession(com.wowza.wms.transcoder.vod.TranscoderVODSession transcoderVODSession) Set the vod transcoder session associated with this HTTP session- Parameters:
- transcoderVODSession- vod transcoder session
 
 - 
getVODTranscodeNGRPString getVODTranscodeNGRP() Get the VOD Transcoder NGRP name- Returns:
- VOD Transcoder NGRP name
 
 - 
setVODTranscodeNGRPvoid setVODTranscodeNGRP(String vodTranscodeNGRP) Set the VOD Transcoder NGRP name- Parameters:
- vodTranscodeNGRP- VOD Transcoder NGRP name
 
 - 
getTranscoderVODIndexIHTTPStreamerTranscoderVODIndex getTranscoderVODIndex() Get the VOD Transcoder index information- Returns:
- VOD Transcoder index
 
 - 
setTranscoderVODIndexvoid setTranscoderVODIndex(IHTTPStreamerTranscoderVODIndex transcoderVODIndex) Set the VOD Transcoder index information- Parameters:
- transcoderVODIndex- VOD Transcoder index
 
 - 
getTranscoderVODIndexDestinationsOrderjava.util.List<String> getTranscoderVODIndexDestinationsOrder() Get the list of VOD Transcoder destinations in playlist order- Returns:
- list of VOD Transcoder destinations
 
 - 
getTranscoderVODIndexDestinationsMapjava.util.Map<String,IHTTPStreamerTranscoderVODDestinationIndex> getTranscoderVODIndexDestinationsMap() Get the VOD Transcoder destination map- Returns:
- VOD Transcoder destination map
 
 - 
indexTranscoderVODvoid indexTranscoderVOD(IHTTPStreamerApplicationContext appContext, String vodTranscodeNGRP) Index the HTTP session for VOD transcoder streaming- Parameters:
- appContext- application context
- vodTranscodeNGRP- transcoder name group
 
 - 
getTranscoderVODIndexIHTTPStreamerTranscoderVODDestinationIndex getTranscoderVODIndex(String bitrateStr) Get VOD transcoder index for given bitrate- Parameters:
- bitrateStr- bitrate string
- Returns:
- VOD transcoder index
 
 - 
addHTTPSessionToTCPSessionvoid addHTTPSessionToTCPSession(com.wowza.wms.server.RtmpSessionInfo wmsSessionInfo, IHTTPStreamerApplicationContext appContext)Add HTTP session to TCP session for tracking- Parameters:
- wmsSessionInfo- TCP session info
- appContext- app context
 
 - 
isSecureboolean isSecure() Returns true if the stream is being streamed over an SSL port- Returns:
- true if the stream is being streamed over an SSL port
 
 - 
setSecurevoid setSecure(boolean isSecure) Set to true if the stream is being streamed over an SSL port- Parameters:
- isSecure- true if the stream is being streamed over an SSL port
 
 - 
addTranscoderVODListenervoid addTranscoderVODListener(IHTTPStreamerTranscoderVODActionNotify listener) Add VOD Transcoder action listener- Parameters:
- listener- VOD Transcoder action listener
 
 - 
removeTranscoderVODListenerboolean removeTranscoderVODListener(IHTTPStreamerTranscoderVODActionNotify listener) Remove VOD Transcoder action listener- Parameters:
- listener- VOD Transcoder action listener
- Returns:
- true/false is successful
 
 - 
notifyTranscoderVODFillChunkStartvoid notifyTranscoderVODFillChunkStart(com.wowza.wms.transcoder.vod.TranscoderVODSession transcoderVODSession, com.wowza.wms.transcoder.vod.TranscoderVODDestination transcoderVODDestination, com.wowza.wms.httpstreamer.model.MediaReaderH264Chunk mediaReaderChunk, com.wowza.wms.transcoder.vod.TranscoderVODChunkContext transcoderVODChunkContext)Called to notify of VOD Transcoder fill chunk start- Parameters:
- transcoderVODSession- VOD Transcoder session
- transcoderVODDestination- VOD Transcoder destination
- mediaReaderChunk- media reader for the chunk
- transcoderVODChunkContext- VOD Transcoder context
 
 - 
notifyTranscoderVODFillChunkTranscodevoid notifyTranscoderVODFillChunkTranscode(com.wowza.wms.transcoder.vod.TranscoderVODSession transcoderVODSession, com.wowza.wms.transcoder.vod.TranscoderVODChunkContext transcoderVODChunkContext, java.util.List<com.wowza.wms.httpstreamer.model.MediaReaderH264Packet> packets)Called to notify of VOD Transcoder fill chunk- Parameters:
- transcoderVODSession- VOD Transcoder session
- transcoderVODChunkContext- VOD Transcoder context
- packets-
 
 - 
notifyTranscoderVODFillChunkStopvoid notifyTranscoderVODFillChunkStop(com.wowza.wms.transcoder.vod.TranscoderVODSession transcoderVODSession, com.wowza.wms.transcoder.vod.TranscoderVODChunkContext transcoderVODChunkContext)Called to notify of VOD Transcoder fill stop- Parameters:
- transcoderVODSession- VOD Transcoder session
- transcoderVODChunkContext- VOD Transcoder context
 
 
- 
 
-