Package com.gmt2001.httpwsserver
Interface WsFrameHandler
- All Known Implementing Classes:
WsAlertsPollsHandler,WsPanelHandler,WsPanelRemoteLoginHandler,WsYTHandler
public interface WsFrameHandler
Represents a handler for WebSocket frames
- Author:
- gmt2001
-
Method Summary
Modifier and TypeMethodDescriptionGets theWsAuthenticationHandlerassigned to this endpointvoidhandleFrame(ChannelHandlerContext ctx, WebSocketFrame frame) Handles the WebSocket frame and sends a response back to the client, if necessary Only gets called if theWsAuthenticationHandlerreturnedtrueregister()Registers thisWsFrameHandlerwith theWebSocketFrameHandler
-
Method Details
-
register
WsFrameHandler register()Registers thisWsFrameHandlerwith theWebSocketFrameHandler- Returns:
-
getAuthHandler
WsAuthenticationHandler getAuthHandler()Gets theWsAuthenticationHandlerassigned to this endpoint- Returns:
- An
WsAuthenticationHandler
-
handleFrame
Handles the WebSocket frame and sends a response back to the client, if necessary Only gets called if theWsAuthenticationHandlerreturnedtrue- Parameters:
ctx- TheChannelHandlerContextof the sessionframe- TheWebSocketFrameto process
-