@UnstableApi
@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) |
acceptInboundMessage, channelRead
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
handlerAdded, handlerRemoved, isSharable
public DatagramDnsResponseDecoder()
public DatagramDnsResponseDecoder(DnsRecordDecoder recordDecoder)
recordDecoder
.Copyright © 2008–2017 The Netty Project. All rights reserved.