public class UaTcpServerHelloHandler extends io.netty.handler.codec.ByteToMessageDecoder implements HeaderDecoder
| Modifier and Type | Field and Description |
|---|---|
static io.netty.util.AttributeKey<String> |
ENDPOINT_URL_KEY |
COMPOSITE_CUMULATOR, MERGE_CUMULATORHEADER_LENGTH, HEADER_LENGTH_INDEX, PROTOCOL_VERSION| Constructor and Description |
|---|
UaTcpServerHelloHandler(SocketServer socketServer) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf buffer,
List<Object> out) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
actualReadableBytes, callDecode, channelInactive, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setSingleDecodechannelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMessageLengthpublic static final io.netty.util.AttributeKey<String> ENDPOINT_URL_KEY
public UaTcpServerHelloHandler(SocketServer socketServer)
protected void decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf buffer,
List<Object> out)
throws Exception
decode in class io.netty.handler.codec.ByteToMessageDecoderExceptionpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
throws Exception
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in interface io.netty.channel.ChannelInboundHandlerexceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapterExceptionCopyright © 2015. All rights reserved.