public interface IHTTPStreamerAdapter
IHTTPStreamerAdapter: HTTP streaming adapter interface
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHandle(String path)
Return true if can handle request
|
String |
getAdapterName()
Get the name of this adapter
|
com.wowza.wms.httpstreamer.model.HTTPStreamerItem |
getHTTPStreamerItem()
Get the HTTP streamer item associated with this adapter
|
String |
getID()
Get the id of this adapter
|
int |
getIdleFrequency()
Get the idle frequency (milliseconds) for HTTP requests.
|
WMSProperties |
getProperties()
Get properties
|
int |
getSessionProtocol()
Set the adapter session protocol.
|
IVHost |
getVHost()
Get the vhost associated with this adapter
|
void |
init()
Initialize the HTTP streaming adapter
|
void |
service(org.apache.mina.common.IoSession session,
com.wowza.wms.server.RtmpRequestMessage req,
com.wowza.wms.server.RtmpResponseMessage resp)
Called to service each request
|
void |
setHTTPStreamerItem(com.wowza.wms.httpstreamer.model.HTTPStreamerItem httpStreamerItem)
Set the HTTP streamer item associated with this adapter
|
void |
setID(String id)
Set the id of this adapter
|
void |
setProperties(WMSProperties properties)
Set properties
|
void |
setSessionProtocol(int sessionProtocol)
Get the adapter session protocol.
|
void |
setVHost(IVHost vhost)
Set the vhost associated with this adapter
|
void |
shutdownSession(IApplicationInstance appInstance,
IHTTPStreamerSession session)
Called when an HTTP streaming session is shutdown
|
boolean canHandle(String path)
path - request pathString getAdapterName()
com.wowza.wms.httpstreamer.model.HTTPStreamerItem getHTTPStreamerItem()
String getID()
int getIdleFrequency()
WMSProperties getProperties()
int getSessionProtocol()
IVHost getVHost()
void init()
void service(org.apache.mina.common.IoSession session,
com.wowza.wms.server.RtmpRequestMessage req,
com.wowza.wms.server.RtmpResponseMessage resp)
session - io sessionreq - requestresp - responsevoid setHTTPStreamerItem(com.wowza.wms.httpstreamer.model.HTTPStreamerItem httpStreamerItem)
httpStreamerItem - HTTP streamer itemvoid setID(String id)
id - id of this adaptervoid setProperties(WMSProperties properties)
properties - propertiesvoid setSessionProtocol(int sessionProtocol)
sessionProtocol - adapter session protocolvoid setVHost(IVHost vhost)
vhost - vhostvoid shutdownSession(IApplicationInstance appInstance, IHTTPStreamerSession session)
session - HTTP streaming session