@UnstableApi @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, write
bind, close, connect, deregister, disconnect, flush, read
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
public 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>
Exception
Copyright © 2008–2021 The Netty Project. All rights reserved.