public class HAProxyMessageCompletionHandler
extends io.netty.handler.codec.MessageToMessageDecoder<HAProxyMessage>
| Modifier and Type | Field and Description |
|---|---|
static IOException |
UNSUPPORTED_PROTOCOL_EXCEPTION |
| Constructor and Description |
|---|
HAProxyMessageCompletionHandler(io.netty.util.concurrent.Promise<io.netty.channel.Channel> promise) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canUseProxyProtocol(boolean requested) |
protected void |
decode(io.netty.channel.ChannelHandlerContext ctx,
HAProxyMessage msg,
List<Object> out) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
void |
userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
Object evt) |
acceptInboundMessage, channelReadchannelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChangedensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic static final IOException UNSUPPORTED_PROTOCOL_EXCEPTION
public HAProxyMessageCompletionHandler(io.netty.util.concurrent.Promise<io.netty.channel.Channel> promise)
public static boolean canUseProxyProtocol(boolean requested)
protected void decode(io.netty.channel.ChannelHandlerContext ctx,
HAProxyMessage msg,
List<Object> out)
decode in class io.netty.handler.codec.MessageToMessageDecoder<HAProxyMessage>public 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.ChannelInboundHandlerAdapterpublic void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
Object evt)
userEventTriggered in interface io.netty.channel.ChannelInboundHandleruserEventTriggered in class io.netty.channel.ChannelInboundHandlerAdapterCopyright © 2021. All rights reserved.