public class WebSocketDecoder extends ObjectToMessageDecoder
| 限定符和类型 | 字段和说明 |
|---|---|
protected static InternalLogger |
LOGGER |
static String |
protocolVersion
协议版本,默认0
|
| 构造器和说明 |
|---|
WebSocketDecoder() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
channelClosed(SocketChannel socketChannel) |
void |
decode(SocketChannel socketChannel,
Object obj,
LinkedNonReadBlockQueue<Object> out) |
channelAdded, channelRead, channelWrite, encode, exceptionCaught, userEventTriggeredclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchannelAdded, channelRead, exceptionCaughtchannelWrite, encode, userEventTriggeredprotected static final InternalLogger LOGGER
public static String protocolVersion
public void decode(SocketChannel socketChannel, Object obj, LinkedNonReadBlockQueue<Object> out) throws Exception
decode 在接口中 ChannelBoundHandlerdecode 在接口中 ChannelInboundHandlerdecode 在类中 ChannelHandlerAdapterExceptionpublic void channelClosed(SocketChannel socketChannel) throws Exception
channelClosed 在接口中 ChannelBoundHandlerchannelClosed 在接口中 ChannelInboundHandlerchannelClosed 在类中 ChannelHandlerAdapterExceptionCopyright © 2021. All rights reserved.