|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.shared.ldap.codec.LdapDecoder
public class LdapDecoder
The LdapDecoder decodes ASN.1 BER encoded PDUs.
| Constructor Summary | |
|---|---|
LdapDecoder()
Creates an instance of a Ldap Decoder implementation. |
|
| Method Summary | |
|---|---|
void |
decode(org.apache.mina.core.session.IoSession session,
org.apache.mina.core.buffer.IoBuffer in,
org.apache.mina.filter.codec.ProtocolDecoderOutput out)
|
Object |
decode(Object lock,
InputStream in)
Decodes a PDU from an input stream into a Snickers compiler generated stub envelope. |
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)
|
DecoderCallback |
getCallback()
|
void |
setCallback(DecoderCallback cb)
Set the callback to call when the PDU has been decoded |
void |
setLdapMessageContainer(LdapMessageContainer<MessageDecorator<? extends Message>> ldapMessageContainer)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LdapDecoder()
| Method Detail |
|---|
public Object decode(Object lock,
InputStream in)
throws DecoderException
lock - Lock object used to exclusively read from the input streamin - The input stream to read and decode PDU bytes from
DecoderExceptionpublic void setCallback(DecoderCallback cb)
cb - The callbackpublic DecoderCallback getCallback()
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.ProtocolDecoderException
public void dispose(org.apache.mina.core.session.IoSession session)
throws Exception
dispose in interface org.apache.mina.filter.codec.ProtocolDecoderException
public 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.ProtocolDecoderExceptionpublic void setLdapMessageContainer(LdapMessageContainer<MessageDecorator<? extends Message>> ldapMessageContainer)
ldapMessageContainer - the ldapMessageContainer to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||