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