public class LdapProtocolDecoder extends Object implements org.apache.mina.filter.codec.ProtocolDecoder
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
CODEC_LOG
The logger
|
private org.apache.directory.api.ldap.codec.api.LdapApiService |
ldapApiService
The LDAP API Service instance
|
| Constructor and Description |
|---|
LdapProtocolDecoder(org.apache.directory.api.ldap.codec.api.LdapApiService ldapApiService)
Creates a new instance of LdapProtocolEncoder.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
decode(ByteBuffer buffer,
org.apache.directory.api.ldap.codec.api.LdapMessageContainer<org.apache.directory.api.ldap.model.message.AbstractMessage> messageContainer,
List<org.apache.directory.api.ldap.model.message.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 org.apache.directory.api.ldap.codec.api.LdapApiService ldapApiService
public LdapProtocolDecoder(org.apache.directory.api.ldap.codec.api.LdapApiService ldapApiService)
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 Exception
decode in interface org.apache.mina.filter.codec.ProtocolDecoderExceptionprivate void decode(ByteBuffer buffer, org.apache.directory.api.ldap.codec.api.LdapMessageContainer<org.apache.directory.api.ldap.model.message.AbstractMessage> messageContainer, List<org.apache.directory.api.ldap.model.message.Message> decodedMessages) throws org.apache.directory.api.asn1.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 messagesorg.apache.directory.api.asn1.DecoderException - If the decoding failedpublic void finishDecode(org.apache.mina.core.session.IoSession session,
org.apache.mina.filter.codec.ProtocolDecoderOutput out)
throws Exception
finishDecode in interface org.apache.mina.filter.codec.ProtocolDecoderExceptionCopyright © 2003–2023 The Apache Software Foundation. All rights reserved.