Package io.netty.handler.codec.haproxy
Class HAProxyMessageEncoder
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelOutboundHandlerAdapter
-
- io.netty.handler.codec.MessageToByteEncoder<HAProxyMessage>
-
- io.netty.handler.codec.haproxy.HAProxyMessageEncoder
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelOutboundHandler
@Sharable public final class HAProxyMessageEncoder extends io.netty.handler.codec.MessageToByteEncoder<HAProxyMessage>
Encodes an HAProxy proxy protocol message- See Also:
- Proxy Protocol Specification
-
-
Field Summary
Fields Modifier and Type Field Description static HAProxyMessageEncoder
INSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
encode(io.netty.channel.ChannelHandlerContext ctx, HAProxyMessage msg, io.netty.buffer.ByteBuf out)
-
Methods inherited from class io.netty.handler.codec.MessageToByteEncoder
acceptOutboundMessage, allocateBuffer, isPreferDirect, write
-
Methods inherited from class io.netty.channel.ChannelOutboundHandlerAdapter
bind, close, connect, deregister, disconnect, flush, read
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
-
-
-
-
Field Detail
-
INSTANCE
public static final HAProxyMessageEncoder INSTANCE
-
-
Method Detail
-
encode
protected void encode(io.netty.channel.ChannelHandlerContext ctx, HAProxyMessage msg, io.netty.buffer.ByteBuf out) throws Exception
- Specified by:
encode
in classio.netty.handler.codec.MessageToByteEncoder<HAProxyMessage>
- Throws:
Exception
-
-