public class UaTcpServerSymmetricHandler extends io.netty.handler.codec.ByteToMessageCodec<ServiceResponse> implements HeaderDecoder
HEADER_LENGTH, HEADER_LENGTH_INDEX, PROTOCOL_VERSION| Constructor and Description |
|---|
UaTcpServerSymmetricHandler(UaTcpStackServer server,
SerializationQueue serializationQueue,
ServerSecureChannel secureChannel) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
protected void |
decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf buffer,
List<Object> out) |
protected void |
encode(io.netty.channel.ChannelHandlerContext ctx,
ServiceResponse message,
io.netty.buffer.ByteBuf out) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
void |
handlerAdded(io.netty.channel.ChannelHandlerContext ctx) |
acceptOutboundMessage, channelRead, channelReadComplete, decodeLast, handlerRemoved, writebind, close, connect, deregister, disconnect, flush, readchannelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMessageLengthpublic UaTcpServerSymmetricHandler(UaTcpStackServer server, SerializationQueue serializationQueue, ServerSecureChannel secureChannel)
public void handlerAdded(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
handlerAdded in interface io.netty.channel.ChannelHandlerhandlerAdded in class io.netty.handler.codec.ByteToMessageCodec<ServiceResponse>Exceptionpublic void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelInactive in interface io.netty.channel.ChannelInboundHandlerchannelInactive in class io.netty.handler.codec.ByteToMessageCodec<ServiceResponse>Exceptionprotected void encode(io.netty.channel.ChannelHandlerContext ctx,
ServiceResponse message,
io.netty.buffer.ByteBuf out)
throws Exception
encode in class io.netty.handler.codec.ByteToMessageCodec<ServiceResponse>Exceptionprotected void decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf buffer,
List<Object> out)
throws Exception
decode in class io.netty.handler.codec.ByteToMessageCodec<ServiceResponse>Exceptionpublic 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.