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, write
bind, close, connect, deregister, disconnect, flush, read
channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMessageLength
public UascClientAcknowledgeHandler(UaStackClient client, CompletableFuture<ClientSecureChannel> handshakeFuture) throws UaException
UaException
public void channelActive(io.netty.channel.ChannelHandlerContext ctx) throws Exception
channelActive
in interface io.netty.channel.ChannelInboundHandler
channelActive
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
public void handlerAdded(io.netty.channel.ChannelHandlerContext ctx) throws Exception
handlerAdded
in interface io.netty.channel.ChannelHandler
handlerAdded
in class io.netty.handler.codec.ByteToMessageCodec<UaTransportRequest>
Exception
protected 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>
Exception
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
exceptionCaught
in interface io.netty.channel.ChannelHandler
exceptionCaught
in interface io.netty.channel.ChannelInboundHandler
exceptionCaught
in class io.netty.channel.ChannelInboundHandlerAdapter
Copyright © 2021. All rights reserved.