Package io.netty.handler.codec.dns
Class TcpDnsQueryEncoder
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelOutboundHandlerAdapter
-
- io.netty.handler.codec.MessageToByteEncoder<DnsQuery>
-
- io.netty.handler.codec.dns.TcpDnsQueryEncoder
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelOutboundHandler
@Sharable public final class TcpDnsQueryEncoder extends io.netty.handler.codec.MessageToByteEncoder<DnsQuery>
-
-
Constructor Summary
Constructors Constructor Description TcpDnsQueryEncoder()Creates a new encoder with the default record encoder.TcpDnsQueryEncoder(DnsRecordEncoder recordEncoder)Creates a new encoder with the specifiedrecordEncoder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected io.netty.buffer.ByteBufallocateBuffer(io.netty.channel.ChannelHandlerContext ctx, DnsQuery msg, boolean preferDirect)protected voidencode(io.netty.channel.ChannelHandlerContext ctx, DnsQuery msg, io.netty.buffer.ByteBuf out)-
Methods inherited from class io.netty.handler.codec.MessageToByteEncoder
acceptOutboundMessage, isPreferDirect, 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
-
TcpDnsQueryEncoder
public TcpDnsQueryEncoder()
Creates a new encoder with the default record encoder.
-
TcpDnsQueryEncoder
public TcpDnsQueryEncoder(DnsRecordEncoder recordEncoder)
Creates a new encoder with the specifiedrecordEncoder.
-
-