@ChannelHandler.Sharable public class DatagramPacketStringEncoder extends io.netty.handler.codec.MessageToMessageEncoder<io.netty.channel.AddressedEnvelope<Object,InetSocketAddress>>
Constructor and Description |
---|
DatagramPacketStringEncoder()
Creates a new instance with the current system character set.
|
DatagramPacketStringEncoder(Charset charset)
Creates a new instance with the specified character set.
|
Modifier and Type | Method and Description |
---|---|
protected void |
encode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.channel.AddressedEnvelope<Object,InetSocketAddress> msg,
List<Object> out) |
acceptOutboundMessage, write
bind, close, connect, deregister, disconnect, flush, read
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
public DatagramPacketStringEncoder()
public DatagramPacketStringEncoder(Charset charset)
protected void encode(io.netty.channel.ChannelHandlerContext ctx, io.netty.channel.AddressedEnvelope<Object,InetSocketAddress> msg, List<Object> out) throws Exception
encode
in class io.netty.handler.codec.MessageToMessageEncoder<io.netty.channel.AddressedEnvelope<Object,InetSocketAddress>>
Exception
Apache Camel