Package com.wowza.wms.http
Interface IHTTPProvider
- 
- All Known Subinterfaces:
- IHTTPProvider2
 - All Known Implementing Classes:
- HTTPProvider2Base,- com.wowza.wms.http.HTTProvider2Base
 
 public interface IHTTPProviderIHTTPProvider: 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. 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidaddCORSHeaders(IHTTPRequest req, IHTTPResponse resp)Called to provide CORS Headers to the outputvoidaddCORSHeaders(IHTTPResponse resp)Called to provide CORS Headers to the output, no dynamic CORS outputvoidaddDateHeader(IHTTPResponse resp)Called to provide Date Header to the outputvoidaddWebSocketSession(IWebSocketSession webSocketSession)Add WebSocket sessionintbroadcastWebSocketMessage(WebSocketMessage message)Broadcast a WebSocket message to all connected WebSocket sessions.intgetWebSocketSessionCount()Get total count of WebSocket sessions for this HTTPProviderjava.util.List<IWebSocketSession>getWebSocketSessions()Get a list of all WebSocket sessions for this HTTPProvidervoidonBind(IVHost vhost, HostPort hostPort)Triggered after hostPort binds to socketvoidonHTTPRequest(IVHost vhost, IHTTPRequest req, IHTTPResponse resp)Triggered for each HTTP request to the given hostPort that is not an RTMPT request.voidonUnbind(IVHost vhost, HostPort hostPort)Triggered after hostPort unbindsbooleanremoveWebSocketSession(IWebSocketSession webSocketSession)Remove WebSocket sessiondefault voidsetPasswordEncodingScheme(String passwordEncodingScheme)Called to provide passwordEncodingScheme set in configuration filesvoidsetProperties(WMSProperties properties)Called to provide properties set in configuration filesbooleanvalidatePath(String path)Called to check path request is within scope
 
- 
- 
- 
Method Detail- 
onBindvoid onBind(IVHost vhost, HostPort hostPort) Triggered after hostPort binds to socket- Parameters:
- vhost- parent vhost
- hostPort- host port definition
 
 - 
onHTTPRequestvoid onHTTPRequest(IVHost vhost, IHTTPRequest req, IHTTPResponse resp) Triggered for each HTTP request to the given hostPort that is not an RTMPT request.- Parameters:
- vhost- parent vhost
- req- HTML requestion object
- resp- HTML response object
 
 - 
onUnbindvoid onUnbind(IVHost vhost, HostPort hostPort) Triggered after hostPort unbinds- Parameters:
- vhost- parent vhost
- hostPort- host port definition
 
 - 
setPropertiesvoid setProperties(WMSProperties properties) Called to provide properties set in configuration files
 - 
setPasswordEncodingSchemedefault void setPasswordEncodingScheme(String passwordEncodingScheme) Called to provide passwordEncodingScheme set in configuration files- Parameters:
- passwordEncoding- password encoding
 
 - 
addCORSHeadersvoid addCORSHeaders(IHTTPResponse resp) Called to provide CORS Headers to the output, no dynamic CORS output- Parameters:
- resp-
 
 - 
addCORSHeadersvoid addCORSHeaders(IHTTPRequest req, IHTTPResponse resp) Called to provide CORS Headers to the output- Parameters:
- resp-
 
 - 
addDateHeadervoid addDateHeader(IHTTPResponse resp) Called to provide Date Header to the output- Parameters:
- resp-
 
 - 
validatePathboolean validatePath(String path) Called to check path request is within scope- Parameters:
- path-
- Returns:
 
 - 
addWebSocketSessionvoid addWebSocketSession(IWebSocketSession webSocketSession) Add WebSocket session- Parameters:
- webSocketSession- WebSocket session
 
 - 
removeWebSocketSessionboolean removeWebSocketSession(IWebSocketSession webSocketSession) Remove WebSocket session- Parameters:
- webSocketSession- WebSocket session
- Returns:
- true, if session removed
 
 - 
getWebSocketSessionsjava.util.List<IWebSocketSession> getWebSocketSessions() Get a list of all WebSocket sessions for this HTTPProvider- Returns:
- list of all WebSocket sessions
 
 - 
getWebSocketSessionCountint getWebSocketSessionCount() Get total count of WebSocket sessions for this HTTPProvider- Returns:
- total count of WebSocket sessions for this HTTPProvider
 
 - 
broadcastWebSocketMessageint broadcastWebSocketMessage(WebSocketMessage message) Broadcast a WebSocket message to all connected WebSocket sessions.- Parameters:
- message- message to broadcast
- Returns:
- number of sessions the message was sent to
 
 
- 
 
-