|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.subethamail.smtp.server.SMTPCodecDecoder
public class SMTPCodecDecoder
A ProtocolDecoder
which decodes incoming SMTP data based on session context.
Constructor Summary | |
---|---|
SMTPCodecDecoder(java.nio.charset.Charset charset,
int thresholdBytes)
Creates a new instance with the specified charset and the specified thresholdBytes deferring size. |
Method Summary | |
---|---|
static byte[] |
asArray(org.apache.mina.common.ByteBuffer b)
|
void |
decode(org.apache.mina.common.IoSession session,
org.apache.mina.common.ByteBuffer in,
org.apache.mina.filter.codec.ProtocolDecoderOutput out)
|
void |
dispose(org.apache.mina.common.IoSession session)
|
void |
finishDecode(org.apache.mina.common.IoSession session,
org.apache.mina.filter.codec.ProtocolDecoderOutput out)
|
int |
getMaxLineLength()
Returns the allowed maximum size of the line to be decoded. |
void |
setDataDeferredSize(int dataDeferredSize)
|
void |
setMaxLineLength(int maxLineLength)
Sets the allowed maximum size of the line to be decoded. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SMTPCodecDecoder(java.nio.charset.Charset charset, int thresholdBytes)
Method Detail |
---|
public void setDataDeferredSize(int dataDeferredSize)
public static byte[] asArray(org.apache.mina.common.ByteBuffer b)
public int getMaxLineLength()
BufferDataException
. The default value is 1024 (1KB).
public void setMaxLineLength(int maxLineLength)
BufferDataException
. The default value is 1024 (1KB).
public void finishDecode(org.apache.mina.common.IoSession session, org.apache.mina.filter.codec.ProtocolDecoderOutput out) throws java.lang.Exception
finishDecode
in interface org.apache.mina.filter.codec.ProtocolDecoder
java.lang.Exception
public void dispose(org.apache.mina.common.IoSession session) throws java.lang.Exception
dispose
in interface org.apache.mina.filter.codec.ProtocolDecoder
java.lang.Exception
public void decode(org.apache.mina.common.IoSession session, org.apache.mina.common.ByteBuffer in, org.apache.mina.filter.codec.ProtocolDecoderOutput out) throws java.lang.Exception
decode
in interface org.apache.mina.filter.codec.ProtocolDecoder
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |