org.apache.directory.shared.ldap.codec.protocol.mina
Class LdapProtocolCodecFactory

java.lang.Object
  extended by org.apache.directory.shared.ldap.codec.protocol.mina.LdapProtocolCodecFactory
All Implemented Interfaces:
org.apache.mina.filter.codec.ProtocolCodecFactory

public class LdapProtocolCodecFactory
extends Object
implements org.apache.mina.filter.codec.ProtocolCodecFactory

The factory used to create the LDAP encoder and decoder.

Author:
Apache Directory Project

Field Summary
static String LDAP_DECODER
          The LdapDecoder key
static String LDAP_ENCODER
          The LdapEncoder key
static String MAX_PDU_SIZE
          The tag stored into the session if we want to set a max PDU size
 
Constructor Summary
LdapProtocolCodecFactory()
           
 
Method Summary
 org.apache.mina.filter.codec.ProtocolDecoder getDecoder(org.apache.mina.core.session.IoSession session)
          Get the LDAP decoder.
 org.apache.mina.filter.codec.ProtocolEncoder getEncoder(org.apache.mina.core.session.IoSession session)
          Get the LDAP encoder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_PDU_SIZE

public static final String MAX_PDU_SIZE
The tag stored into the session if we want to set a max PDU size

See Also:
Constant Field Values

LDAP_DECODER

public static final String LDAP_DECODER
The LdapDecoder key

See Also:
Constant Field Values

LDAP_ENCODER

public static final String LDAP_ENCODER
The LdapEncoder key

See Also:
Constant Field Values
Constructor Detail

LdapProtocolCodecFactory

public LdapProtocolCodecFactory()
Method Detail

getDecoder

public org.apache.mina.filter.codec.ProtocolDecoder getDecoder(org.apache.mina.core.session.IoSession session)
Get the LDAP decoder.

Specified by:
getDecoder in interface org.apache.mina.filter.codec.ProtocolCodecFactory
Parameters:
session - the IO session
Returns:
the decoder

getEncoder

public org.apache.mina.filter.codec.ProtocolEncoder getEncoder(org.apache.mina.core.session.IoSession session)
Get the LDAP encoder.

Specified by:
getEncoder in interface org.apache.mina.filter.codec.ProtocolCodecFactory
Parameters:
session - the IO session
Returns:
the encoder


Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.