@ChannelHandler.Sharable public class DnsResponseDecoder extends MessageToMessageDecoder<DatagramPacket>
DatagramPacket and encodes to
DnsResponse. This class also contains methods for decoding parts of
DnsResponses such as questions and resource records.ChannelHandler.Sharable, ChannelHandler.Skip| Constructor and Description |
|---|
DnsResponseDecoder() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
decode(ChannelHandlerContext ctx,
DatagramPacket packet,
List<Object> out)
Decode from one message to an other.
|
acceptInboundMessage, channelReadbind, channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, close, connect, deregister, disconnect, exceptionCaught, flush, handlerAdded, handlerRemoved, isSharable, read, userEventTriggered, writeprotected void decode(ChannelHandlerContext ctx, DatagramPacket packet, List<Object> out) throws Exception
MessageToMessageDecoderdecode in class MessageToMessageDecoder<DatagramPacket>ctx - the ChannelHandlerContext which this MessageToMessageDecoder belongs topacket - the message to decode to an other oneout - the List to which decoded messages should be addedException - is thrown if an error accourCopyright © 2008–2015 The Netty Project. All rights reserved.