public class LdapProtocolDecoder
extends java.lang.Object
implements org.apache.mina.filter.codec.ProtocolDecoder
| Modifier and Type | Field and Description |
|---|---|
private Asn1Decoder |
asn1Decoder
The ASN 1 decoder instance
|
private static org.slf4j.Logger |
CODEC_LOG
The logger
|
private static boolean |
IS_DEBUG
A speedup for logger
|
| Constructor and Description |
|---|
LdapProtocolDecoder()
Creates a new instance of LdapProtocolEncoder.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
decode(java.nio.ByteBuffer buffer,
LdapMessageContainer<MessageDecorator<? extends Message>> messageContainer,
java.util.List<Message> decodedMessages)
Decode an incoming buffer into LDAP messages.
|
void |
decode(org.apache.mina.core.session.IoSession session,
org.apache.mina.core.buffer.IoBuffer in,
org.apache.mina.filter.codec.ProtocolDecoderOutput out) |
void |
dispose(org.apache.mina.core.session.IoSession session) |
void |
finishDecode(org.apache.mina.core.session.IoSession session,
org.apache.mina.filter.codec.ProtocolDecoderOutput out) |
private static final org.slf4j.Logger CODEC_LOG
private static final boolean IS_DEBUG
private Asn1Decoder asn1Decoder
public LdapProtocolDecoder()
codec - The LDAP codec service associated with this encoder.public void decode(org.apache.mina.core.session.IoSession session,
org.apache.mina.core.buffer.IoBuffer in,
org.apache.mina.filter.codec.ProtocolDecoderOutput out)
throws java.lang.Exception
decode in interface org.apache.mina.filter.codec.ProtocolDecoderjava.lang.Exceptionprivate void decode(java.nio.ByteBuffer buffer,
LdapMessageContainer<MessageDecorator<? extends Message>> messageContainer,
java.util.List<Message> decodedMessages)
throws DecoderException
buffer - The incoming byte buffermessageContainer - The LdapMessageContainer which will be used to store the
message being decoded. If the message is not fully decoded, the ucrrent state
is stored into this containerdecodedMessages - The list of decoded messagesjava.lang.Exception - If the decoding failedDecoderExceptionpublic void finishDecode(org.apache.mina.core.session.IoSession session,
org.apache.mina.filter.codec.ProtocolDecoderOutput out)
throws java.lang.Exception
finishDecode in interface org.apache.mina.filter.codec.ProtocolDecoderjava.lang.Exceptionpublic void dispose(org.apache.mina.core.session.IoSession session)
throws java.lang.Exception
dispose in interface org.apache.mina.filter.codec.ProtocolDecoderjava.lang.Exception