@ChannelHandler.Sharable
public class DatagramDnsResponseDecoder
extends io.netty.handler.codec.MessageToMessageDecoder<io.netty.channel.socket.DatagramPacket>
DatagramPacket into a DatagramDnsResponse.| Constructor and Description |
|---|
DatagramDnsResponseDecoder()
Creates a new decoder with the default record decoder.
|
DatagramDnsResponseDecoder(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) |
protected DnsResponse |
decodeResponse(io.netty.channel.ChannelHandlerContext ctx,
io.netty.channel.socket.DatagramPacket packet) |
acceptInboundMessage, channelRead, channelReadCompletechannelActive, channelInactive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic DatagramDnsResponseDecoder()
public DatagramDnsResponseDecoder(DnsRecordDecoder recordDecoder)
recordDecoder.protected void decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.channel.socket.DatagramPacket packet,
List<Object> out)
throws Exception
decode in class io.netty.handler.codec.MessageToMessageDecoder<io.netty.channel.socket.DatagramPacket>Exceptionprotected DnsResponse decodeResponse(io.netty.channel.ChannelHandlerContext ctx, io.netty.channel.socket.DatagramPacket packet) throws Exception
ExceptionCopyright © 2008–2025 The Netty Project. All rights reserved.