Package io.netty.handler.codec.dns
Class TcpDnsResponseEncoder
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelOutboundHandlerAdapter
-
- io.netty.handler.codec.MessageToMessageEncoder<DnsResponse>
-
- io.netty.handler.codec.dns.TcpDnsResponseEncoder
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelOutboundHandler
@Sharable public final class TcpDnsResponseEncoder extends io.netty.handler.codec.MessageToMessageEncoder<DnsResponse>
-
-
Constructor Summary
Constructors Constructor Description TcpDnsResponseEncoder()Creates a new encoder with the default record encoder.TcpDnsResponseEncoder(DnsRecordEncoder encoder)Creates a new encoder with the specifiedencoder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidencode(io.netty.channel.ChannelHandlerContext ctx, DnsResponse response, List<Object> out)-
Methods inherited from class io.netty.handler.codec.MessageToMessageEncoder
acceptOutboundMessage, 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
-
-
-
-
Constructor Detail
-
TcpDnsResponseEncoder
public TcpDnsResponseEncoder()
Creates a new encoder with the default record encoder.
-
TcpDnsResponseEncoder
public TcpDnsResponseEncoder(DnsRecordEncoder encoder)
Creates a new encoder with the specifiedencoder.
-
-
Method Detail
-
encode
protected void encode(io.netty.channel.ChannelHandlerContext ctx, DnsResponse response, List<Object> out) throws Exception- Specified by:
encodein classio.netty.handler.codec.MessageToMessageEncoder<DnsResponse>- Throws:
Exception
-
-