org.apache.directory.server.ldap
Class LdapProtocolProvider

java.lang.Object
  extended by org.apache.directory.server.ldap.LdapProtocolProvider

public class LdapProtocolProvider
extends java.lang.Object

An LDAP protocol provider implementation which dynamically associates handlers.

Version:
$Rev: 442821 $
Author:
Apache Directory Project

Field Summary
static java.lang.String SERVICE_NAME
          the constant service name of this ldap protocol provider
 
Constructor Summary
LdapProtocolProvider(StartupConfiguration cfg, java.util.Hashtable env)
          Creates a MINA LDAP protocol provider.
 
Method Summary
 void addExtendedOperationHandler(ExtendedOperationHandler eoh)
          Registeres the specified ExtendedOperationHandler to this protocol provider to provide a specific LDAP extended operation.
 org.apache.mina.filter.codec.ProtocolCodecFactory getCodecFactory()
           
 ExtendedOperationHandler getExtendedOperationHandler(java.lang.String oid)
          Returns an ExtendedOperationHandler with the specified oid which is registered to this protocol provider.
 java.util.Map getExtendedOperationHandlerMap()
          Returns a Map of all registered OID-ExtendedOperationHandler pairs.
 org.apache.mina.common.IoHandler getHandler()
           
 java.lang.String getName()
           
 void removeExtendedOperationHandler(java.lang.String oid)
          Deregisteres an ExtendedOperationHandler with the specified oid from this protocol provider.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE_NAME

public static final java.lang.String SERVICE_NAME
the constant service name of this ldap protocol provider

See Also:
Constant Field Values
Constructor Detail

LdapProtocolProvider

public LdapProtocolProvider(StartupConfiguration cfg,
                            java.util.Hashtable env)
                     throws org.apache.directory.shared.ldap.exception.LdapNamingException
Creates a MINA LDAP protocol provider.

Parameters:
env - environment properties used to configure the provider and underlying codec providers if any
Throws:
org.apache.directory.shared.ldap.exception.LdapNamingException
Method Detail

getName

public java.lang.String getName()

getCodecFactory

public org.apache.mina.filter.codec.ProtocolCodecFactory getCodecFactory()

getHandler

public org.apache.mina.common.IoHandler getHandler()

addExtendedOperationHandler

public void addExtendedOperationHandler(ExtendedOperationHandler eoh)
Registeres the specified ExtendedOperationHandler to this protocol provider to provide a specific LDAP extended operation.


removeExtendedOperationHandler

public void removeExtendedOperationHandler(java.lang.String oid)
Deregisteres an ExtendedOperationHandler with the specified oid from this protocol provider.


getExtendedOperationHandler

public ExtendedOperationHandler getExtendedOperationHandler(java.lang.String oid)
Returns an ExtendedOperationHandler with the specified oid which is registered to this protocol provider.


getExtendedOperationHandlerMap

public java.util.Map getExtendedOperationHandlerMap()
Returns a Map of all registered OID-ExtendedOperationHandler pairs.



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