@ChannelHandler.Sharable
public class DatagramDnsQueryDecoder
extends io.netty.handler.codec.MessageToMessageDecoder<io.netty.channel.socket.DatagramPacket>
DatagramPacket into a DatagramDnsQuery.| Constructor and Description |
|---|
DatagramDnsQueryDecoder()
Creates a new decoder with the default record decoder.
|
DatagramDnsQueryDecoder(DnsRecordDecoder recordDecoder)
Creates a new decoder with the specified
recordDecoder. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.channel.socket.DatagramPacket packet,
List<Object> out) |
acceptInboundMessage, channelRead, channelReadCompletechannelActive, channelInactive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic DatagramDnsQueryDecoder()
public DatagramDnsQueryDecoder(DnsRecordDecoder recordDecoder)
recordDecoder.Copyright © 2008–2025 The Netty Project. All rights reserved.