@ChannelHandler.Sharable public final class TcpDnsResponseEncoder extends io.netty.handler.codec.MessageToMessageEncoder<DnsResponse>
| Constructor and Description |
|---|
TcpDnsResponseEncoder()
Creates a new encoder with the default record encoder.
|
TcpDnsResponseEncoder(DnsRecordEncoder encoder)
Creates a new encoder with the specified
encoder. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
encode(io.netty.channel.ChannelHandlerContext ctx,
DnsResponse response,
List<Object> out) |
acceptOutboundMessage, writebind, close, connect, deregister, disconnect, flush, readensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharablepublic TcpDnsResponseEncoder()
public TcpDnsResponseEncoder(DnsRecordEncoder encoder)
encoder.protected void encode(io.netty.channel.ChannelHandlerContext ctx,
DnsResponse response,
List<Object> out)
throws Exception
encode in class io.netty.handler.codec.MessageToMessageEncoder<DnsResponse>ExceptionCopyright © 2008–2025 The Netty Project. All rights reserved.