org.apache.directory.shared.ldap.codec.protocol.mina
Class LdapProtocolDecoder
java.lang.Object
org.apache.directory.shared.ldap.codec.protocol.mina.LdapProtocolDecoder
- All Implemented Interfaces:
- org.apache.mina.filter.codec.ProtocolDecoder
public class LdapProtocolDecoder
- extends Object
- implements org.apache.mina.filter.codec.ProtocolDecoder
A LDAP message decoder. It is based on shared-ldap decoder.
- 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 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:
Exception - if the read data violated protocol specification
finishDecode
public void finishDecode(org.apache.mina.core.session.IoSession session,
org.apache.mina.filter.codec.ProtocolDecoderOutput out)
throws Exception
-
- Specified by:
finishDecode in interface org.apache.mina.filter.codec.ProtocolDecoder
- Throws:
Exception
dispose
public void dispose(org.apache.mina.core.session.IoSession session)
throws Exception
-
- Specified by:
dispose in interface org.apache.mina.filter.codec.ProtocolDecoder
- Throws:
Exception
Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.