public class DnsTcpDecoder extends org.apache.mina.filter.codec.CumulativeProtocolDecoder
CumulativeProtocolDecoder
which supports DNS operation over TCP,
by reassembling split packets prior to decoding.Constructor and Description |
---|
DnsTcpDecoder() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
doDecode(org.apache.mina.core.session.IoSession session,
org.apache.mina.core.buffer.IoBuffer in,
org.apache.mina.filter.codec.ProtocolDecoderOutput out) |
int |
getMaxObjectSize()
Returns the allowed maximum size of the object to be decoded.
|
void |
setMaxObjectSize(int maxObjectSize)
Sets the allowed maximum size of the object to be decoded.
|
public DnsTcpDecoder()
public int getMaxObjectSize()
public void setMaxObjectSize(int maxObjectSize)
IllegalArgumentException
. The default
value is 16384 (16KB).maxObjectSize
- protected boolean doDecode(org.apache.mina.core.session.IoSession session, org.apache.mina.core.buffer.IoBuffer in, org.apache.mina.filter.codec.ProtocolDecoderOutput out) throws Exception
doDecode
in class org.apache.mina.filter.codec.CumulativeProtocolDecoder
Exception
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.