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 SummaryModifier 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- 
registerWsFrameHandler register()Registers thisWsFrameHandlerwith theWebSocketFrameHandler- Returns:
 
- 
getAuthHandlerWsAuthenticationHandler getAuthHandler()Gets theWsAuthenticationHandlerassigned to this endpoint- Returns:
- An WsAuthenticationHandler
 
- 
handleFrameHandles the WebSocket frame and sends a response back to the client, if necessary Only gets called if theWsAuthenticationHandlerreturnedtrue- Parameters:
- ctx- The- ChannelHandlerContextof the session
- frame- The- WebSocketFrameto process
 
 
-