@ChannelHandler.Sharable
public class EncoderHandler
extends io.netty.channel.ChannelOutboundHandlerAdapter
| Modifier and Type | Field and Description |
|---|---|
static io.netty.util.AttributeKey<Boolean> |
B64 |
static io.netty.util.AttributeKey<Integer> |
JSONP_INDEX |
static io.netty.util.AttributeKey<String> |
ORIGIN |
static io.netty.util.AttributeKey<String> |
USER_AGENT |
static io.netty.util.AttributeKey<Boolean> |
WRITE_ONCE |
| Constructor and Description |
|---|
EncoderHandler(Configuration configuration,
PacketEncoder encoder) |
| Modifier and Type | Method and Description |
|---|---|
void |
write(io.netty.channel.ChannelHandlerContext ctx,
Object msg,
io.netty.channel.ChannelPromise promise) |
bind, close, connect, deregister, disconnect, flush, readensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharablepublic static final io.netty.util.AttributeKey<String> ORIGIN
public static final io.netty.util.AttributeKey<String> USER_AGENT
public static final io.netty.util.AttributeKey<Boolean> B64
public static final io.netty.util.AttributeKey<Integer> JSONP_INDEX
public static final io.netty.util.AttributeKey<Boolean> WRITE_ONCE
public EncoderHandler(Configuration configuration, PacketEncoder encoder) throws IOException
IOExceptionpublic void write(io.netty.channel.ChannelHandlerContext ctx,
Object msg,
io.netty.channel.ChannelPromise promise)
throws Exception
write in interface io.netty.channel.ChannelOutboundHandlerwrite in class io.netty.channel.ChannelOutboundHandlerAdapterExceptionCopyright © 2012–2021. All rights reserved.