public class WebSocketServerProtocolHandler extends io.netty.channel.ChannelInboundMessageHandlerAdapter<WebSocketFrame>
ChannelStateHandler.userEventTriggered(ChannelHandlerContext, Object)
and check if the event was of type
WebSocketServerProtocolHandler.ServerHandshakeStateEvent.HANDSHAKE_COMPLETE
.Modifier and Type | Class and Description |
---|---|
static class |
WebSocketServerProtocolHandler.ServerHandshakeStateEvent
Events that are fired to notify about handshake status
|
Constructor and Description |
---|
WebSocketServerProtocolHandler(String websocketPath) |
WebSocketServerProtocolHandler(String websocketPath,
String subprotocols) |
WebSocketServerProtocolHandler(String websocketPath,
String subprotocols,
boolean allowExtensions) |
Modifier and Type | Method and Description |
---|---|
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
void |
handlerAdded(io.netty.channel.ChannelHandlerContext ctx) |
void |
messageReceived(io.netty.channel.ChannelHandlerContext ctx,
WebSocketFrame frame) |
acceptInboundMessage, beginMessageReceived, endMessageReceived, inboundBufferUpdated, newInboundBuffer
channelActive, channelInactive, channelReadSuspended, channelRegistered, channelUnregistered, userEventTriggered
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public WebSocketServerProtocolHandler(String websocketPath)
public WebSocketServerProtocolHandler(String websocketPath, String subprotocols)
public void handlerAdded(io.netty.channel.ChannelHandlerContext ctx)
handlerAdded
in interface io.netty.channel.ChannelHandler
handlerAdded
in class io.netty.channel.ChannelHandlerAdapter
public void messageReceived(io.netty.channel.ChannelHandlerContext ctx, WebSocketFrame frame) throws Exception
messageReceived
in interface io.netty.channel.ChannelHandlerUtil.SingleInboundMessageHandler<WebSocketFrame>
Exception
Copyright © 2008-2013 The Netty Project. All Rights Reserved.