com.wowza.wms.httpstreamer.model
Interface IHTTPStreamerAdapter


public interface IHTTPStreamerAdapter

IHTTPStreamerAdapter: HTTP streaming adapter interface


Method Summary
 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
 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 setVHost(IVHost vhost)
          Set the vhost associated with this adapter
 void shutdownSession(IHTTPStreamerSession session)
          Called when an HTTP streaming session is shutdown
 

Method Detail

canHandle

boolean canHandle(String path)
Return true if can handle request

Parameters:
path - request path
Returns:
true if can handle request

getAdapterName

String getAdapterName()
Get the name of this adapter

Returns:
name of this adapter

getHTTPStreamerItem

com.wowza.wms.httpstreamer.model.HTTPStreamerItem getHTTPStreamerItem()
Get the HTTP streamer item associated with this adapter

Returns:
HTTP streamer item

getID

String getID()
Get the id of this adapter

Returns:
id of this adapter

getIdleFrequency

int getIdleFrequency()
Get the idle frequency (milliseconds) for HTTP requests. This is how often the session is called back while active.

Returns:
idle frequency (milliseconds)

getProperties

WMSProperties getProperties()
Get properties

Returns:
properties

getVHost

IVHost getVHost()
Get the vhost associated with this adapter

Returns:
vhost

init

void init()
Initialize the HTTP streaming adapter


service

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

Parameters:
session - io session
req - request
resp - response

setHTTPStreamerItem

void setHTTPStreamerItem(com.wowza.wms.httpstreamer.model.HTTPStreamerItem httpStreamerItem)
Set the HTTP streamer item associated with this adapter

Parameters:
httpStreamerItem - HTTP streamer item

setID

void setID(String id)
Set the id of this adapter

Parameters:
id - id of this adapter

setProperties

void setProperties(WMSProperties properties)
Set properties

Parameters:
properties - properties

setVHost

void setVHost(IVHost vhost)
Set the vhost associated with this adapter

Parameters:
vhost - vhost

shutdownSession

void shutdownSession(IHTTPStreamerSession session)
Called when an HTTP streaming session is shutdown

Parameters:
session - HTTP streaming session