IHTTPProvider2HTTPProvider2Base, com.wowza.wms.http.HTTProvider2Basepublic interface IHTTPProvider
IHTTPProvider: HTTP provider class for a given HostPort definition. Receive all HTTP requests that are not RTMPT requests. See IHTTPProvider2 for the extended version of this interface.
| Modifier and Type | Method | Description |
|---|---|---|
void |
addCORSHeaders(IHTTPRequest req,
IHTTPResponse resp) |
Called to provide CORS Headers to the output
|
void |
addCORSHeaders(IHTTPResponse resp) |
Called to provide CORS Headers to the output, no dynamic CORS output
|
void |
addDateHeader(IHTTPResponse resp) |
Called to provide Date Header to the output
|
void |
addWebSocketSession(IWebSocketSession webSocketSession) |
Add WebSocket session
|
int |
broadcastWebSocketMessage(WebSocketMessage message) |
Broadcast a WebSocket message to all connected WebSocket sessions.
|
int |
getWebSocketSessionCount() |
Get total count of WebSocket sessions for this HTTPProvider
|
java.util.List<IWebSocketSession> |
getWebSocketSessions() |
Get a list of all WebSocket sessions for this HTTPProvider
|
void |
onBind(IVHost vhost,
HostPort hostPort) |
Triggered after hostPort binds to socket
|
void |
onHTTPRequest(IVHost vhost,
IHTTPRequest req,
IHTTPResponse resp) |
Triggered for each HTTP request to the given hostPort that is not an RTMPT request.
|
void |
onUnbind(IVHost vhost,
HostPort hostPort) |
Triggered after hostPort unbinds
|
boolean |
removeWebSocketSession(IWebSocketSession webSocketSession) |
Remove WebSocket session
|
void |
setProperties(WMSProperties properties) |
Called to provide properties set in configuration files
|
boolean |
validatePath(String path) |
Called to check path request is within scope
|
void addCORSHeaders(IHTTPRequest req, IHTTPResponse resp)
resp - void addCORSHeaders(IHTTPResponse resp)
resp - void addDateHeader(IHTTPResponse resp)
resp - void addWebSocketSession(IWebSocketSession webSocketSession)
webSocketSession - WebSocket sessionint broadcastWebSocketMessage(WebSocketMessage message)
message - message to broadcastint getWebSocketSessionCount()
java.util.List<IWebSocketSession> getWebSocketSessions()
void onBind(IVHost vhost, HostPort hostPort)
vhost - parent vhosthostPort - host port definitionvoid onHTTPRequest(IVHost vhost, IHTTPRequest req, IHTTPResponse resp)
vhost - parent vhostreq - HTML requestion objectresp - HTML response objectvoid onUnbind(IVHost vhost, HostPort hostPort)
vhost - parent vhosthostPort - host port definitionboolean removeWebSocketSession(IWebSocketSession webSocketSession)
webSocketSession - WebSocket sessionvoid setProperties(WMSProperties properties)
boolean validatePath(String path)
path -