public class UascClientAcknowledgeHandler extends io.netty.handler.codec.ByteToMessageCodec<UaTransportRequest> implements HeaderDecoder
HEADER_LENGTH, HEADER_LENGTH_INDEX, PROTOCOL_VERSION| Constructor and Description |
|---|
UascClientAcknowledgeHandler(UaStackClient client,
CompletableFuture<ClientSecureChannel> handshakeFuture) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelActive(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,
UaTransportRequest message,
io.netty.buffer.ByteBuf out) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
void |
handlerAdded(io.netty.channel.ChannelHandlerContext ctx) |
acceptOutboundMessage, channelInactive, channelRead, channelReadComplete, decodeLast, handlerRemoved, writebind, close, connect, deregister, disconnect, flush, readchannelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMessageLengthpublic UascClientAcknowledgeHandler(UaStackClient client, CompletableFuture<ClientSecureChannel> handshakeFuture) throws UaException
UaExceptionpublic void channelActive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelActive in interface io.netty.channel.ChannelInboundHandlerchannelActive in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void handlerAdded(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
handlerAdded in interface io.netty.channel.ChannelHandlerhandlerAdded in class io.netty.handler.codec.ByteToMessageCodec<UaTransportRequest>Exceptionprotected void encode(io.netty.channel.ChannelHandlerContext ctx,
UaTransportRequest message,
io.netty.buffer.ByteBuf out)
encode in class io.netty.handler.codec.ByteToMessageCodec<UaTransportRequest>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.ByteToMessageCodec<UaTransportRequest>Exceptionpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in interface io.netty.channel.ChannelInboundHandlerexceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapterCopyright © 2021. All rights reserved.