org.apache.directory.ldap.client.api.protocol
Class LdapProtocolEncoder

java.lang.Object
  extended by org.apache.directory.ldap.client.api.protocol.LdapProtocolEncoder
All Implemented Interfaces:
org.apache.mina.filter.codec.ProtocolEncoder

public class LdapProtocolEncoder
extends java.lang.Object
implements org.apache.mina.filter.codec.ProtocolEncoder

A LDAP encoder.

Version:
$Rev$, $Date$
Author:
Apache Directory Project

Constructor Summary
LdapProtocolEncoder()
           
 
Method Summary
 void dispose(org.apache.mina.core.session.IoSession session)
          
 void encode(org.apache.mina.core.session.IoSession session, java.lang.Object request, org.apache.mina.filter.codec.ProtocolEncoderOutput out)
          Encode a Ldap request and write it to the remote server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LdapProtocolEncoder

public LdapProtocolEncoder()
Method Detail

encode

public void encode(org.apache.mina.core.session.IoSession session,
                   java.lang.Object request,
                   org.apache.mina.filter.codec.ProtocolEncoderOutput out)
            throws java.lang.Exception
Encode a Ldap request and write it to the remote server.

Specified by:
encode in interface org.apache.mina.filter.codec.ProtocolEncoder
Parameters:
session - The session containing the LdapMessageContainer
request - The LDAP message we have to encode to a Byte stream
out - The callback we have to invoke when the message has been encoded
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.ProtocolEncoder
Throws:
java.lang.Exception


Copyright © 2009-2011 Apache Software Foundation. All Rights Reserved.