Package io.netty.handler.codec.dns
Class DatagramDnsQueryDecoder
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.handler.codec.MessageToMessageDecoder<io.netty.channel.socket.DatagramPacket>
-
- io.netty.handler.codec.dns.DatagramDnsQueryDecoder
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
@Sharable public class DatagramDnsQueryDecoder extends io.netty.handler.codec.MessageToMessageDecoder<io.netty.channel.socket.DatagramPacket>Decodes aDatagramPacketinto aDatagramDnsQuery.
-
-
Constructor Summary
Constructors Constructor Description DatagramDnsQueryDecoder()Creates a new decoder with the default record decoder.DatagramDnsQueryDecoder(DnsRecordDecoder recordDecoder)Creates a new decoder with the specifiedrecordDecoder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddecode(io.netty.channel.ChannelHandlerContext ctx, io.netty.channel.socket.DatagramPacket packet, List<Object> out)-
Methods inherited from class io.netty.handler.codec.MessageToMessageDecoder
acceptInboundMessage, channelRead, channelReadComplete
-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
-
-
-
-
Constructor Detail
-
DatagramDnsQueryDecoder
public DatagramDnsQueryDecoder()
Creates a new decoder with the default record decoder.
-
DatagramDnsQueryDecoder
public DatagramDnsQueryDecoder(DnsRecordDecoder recordDecoder)
Creates a new decoder with the specifiedrecordDecoder.
-
-