@UnstableApi
public final class TcpDnsResponseDecoder
extends io.netty.handler.codec.LengthFieldBasedFrameDecoder
Constructor and Description |
---|
TcpDnsResponseDecoder()
Creates a new decoder with the default record decoder.
|
TcpDnsResponseDecoder(DnsRecordDecoder recordDecoder,
int maxFrameLength)
Creates a new decoder with the specified
recordDecoder and maxFrameLength |
Modifier and Type | Method and Description |
---|---|
protected Object |
decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf in) |
protected io.netty.buffer.ByteBuf |
extractFrame(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf buffer,
int index,
int length) |
decode, getUnadjustedFrameLength
actualReadableBytes, callDecode, channelInactive, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggered
channelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught
ensureNotSharable, handlerAdded, isSharable
public TcpDnsResponseDecoder()
public TcpDnsResponseDecoder(DnsRecordDecoder recordDecoder, int maxFrameLength)
recordDecoder
and maxFrameLength
protected Object decode(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf in) throws Exception
decode
in class io.netty.handler.codec.LengthFieldBasedFrameDecoder
Exception
protected io.netty.buffer.ByteBuf extractFrame(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf buffer, int index, int length)
extractFrame
in class io.netty.handler.codec.LengthFieldBasedFrameDecoder
Copyright © 2008–2019 The Netty Project. All rights reserved.