public class WebsocketHandler extends ChannelDuplexHandler
WebServerInitializer if an implementation of WebsocketDispatcher
is present.ChannelHandler.Sharable| Constructor and Description |
|---|
WebsocketHandler(WebsocketDispatcher websocketDispatcher)
Creates a new handler (one per connection) talking to the given dispatcher.
|
| Modifier and Type | Method and Description |
|---|---|
void |
channelRead(ChannelHandlerContext ctx,
Object msg) |
void |
channelUnregistered(ChannelHandlerContext ctx) |
void |
exceptionCaught(ChannelHandlerContext ctx,
Throwable e) |
void |
userEventTriggered(ChannelHandlerContext ctx,
Object evt) |
bind, close, connect, deregister, disconnect, flush, read, writechannelActive, channelInactive, channelReadComplete, channelRegistered, channelWritabilityChangedensureNotSharable, handlerAdded, handlerRemoved, isSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandlerAdded, handlerRemovedpublic WebsocketHandler(WebsocketDispatcher websocketDispatcher)
websocketDispatcher - the dispatcher responsible for creating a WebsocketSessionpublic void exceptionCaught(ChannelHandlerContext ctx, Throwable e) throws Exception
exceptionCaught in interface ChannelHandlerexceptionCaught in interface ChannelInboundHandlerexceptionCaught in class ChannelInboundHandlerAdapterExceptionpublic void channelUnregistered(ChannelHandlerContext ctx) throws Exception
channelUnregistered in interface ChannelInboundHandlerchannelUnregistered in class ChannelInboundHandlerAdapterExceptionpublic void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception
userEventTriggered in interface ChannelInboundHandleruserEventTriggered in class ChannelInboundHandlerAdapterExceptionpublic void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception
channelRead in interface ChannelInboundHandlerchannelRead in class ChannelInboundHandlerAdapterExceptionCopyright © 2018. All rights reserved.