org.apache.directory.ldap.client.api.protocol
Class LdapProtocolDecoder
java.lang.Object
org.apache.directory.ldap.client.api.protocol.LdapProtocolDecoder
- All Implemented Interfaces:
- org.apache.mina.filter.codec.ProtocolDecoder
public class LdapProtocolDecoder
- extends java.lang.Object
- implements org.apache.mina.filter.codec.ProtocolDecoder
A LDAP message decoder. It is based on shared-ldap decoder.
- Version:
- $Rev$, $Date$
- Author:
- Apache Directory Project
Method Summary |
void |
decode(org.apache.mina.core.session.IoSession session,
org.apache.mina.core.buffer.IoBuffer buffer,
org.apache.mina.filter.codec.ProtocolDecoderOutput out)
Decode a Ldap request and write it to the remote server. |
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LdapProtocolDecoder
public LdapProtocolDecoder()
decode
public void decode(org.apache.mina.core.session.IoSession session,
org.apache.mina.core.buffer.IoBuffer buffer,
org.apache.mina.filter.codec.ProtocolDecoderOutput out)
throws java.lang.Exception
- Decode a Ldap request and write it to the remote server.
- Specified by:
decode
in interface org.apache.mina.filter.codec.ProtocolDecoder
- Parameters:
session
- The session containing the LdapMessageContainerbuffer
- The ByteBuffer containing the incoming bytes to decode
to a LDAP messageout
- The callback we have to invoke when the message has been decoded
- Throws:
java.lang.Exception
finishDecode
public void finishDecode(org.apache.mina.core.session.IoSession session,
org.apache.mina.filter.codec.ProtocolDecoderOutput out)
throws java.lang.Exception
-
- Specified by:
finishDecode
in interface org.apache.mina.filter.codec.ProtocolDecoder
- Throws:
java.lang.Exception
dispose
public void dispose(org.apache.mina.core.session.IoSession session)
throws java.lang.Exception
-
- Specified by:
dispose
in interface org.apache.mina.filter.codec.ProtocolDecoder
- Throws:
java.lang.Exception
Copyright © 2009-2011 Apache Software Foundation. All Rights Reserved.