org.apache.directory.server.ldap.handlers.extended
Class StoredProcedureExtendedOperationHandler

java.lang.Object
  extended by org.apache.directory.server.ldap.handlers.extended.StoredProcedureExtendedOperationHandler
All Implemented Interfaces:
ExtendedOperationHandler<org.apache.directory.shared.ldap.extras.extended.StoredProcedureRequest,org.apache.directory.shared.ldap.extras.extended.StoredProcedureResponse>

public class StoredProcedureExtendedOperationHandler
extends Object
implements ExtendedOperationHandler<org.apache.directory.shared.ldap.extras.extended.StoredProcedureRequest,org.apache.directory.shared.ldap.extras.extended.StoredProcedureResponse>

Author:
Apache Directory Project

Constructor Summary
StoredProcedureExtendedOperationHandler()
           
 
Method Summary
 Set<String> getExtensionOids()
          The OIDs of the extensions supported by this handler.
 String getOid()
          Returns the EXTENSION_OID of the extended request this handler can handle.
 void handleExtendedOperation(LdapSession session, org.apache.directory.shared.ldap.extras.extended.StoredProcedureRequest req)
          Handles the specified extended operation.
 void setLdapServer(LdapServer ldapServer)
          Sets the LDAP server for this extendedOperation handler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StoredProcedureExtendedOperationHandler

public StoredProcedureExtendedOperationHandler()
Method Detail

handleExtendedOperation

public void handleExtendedOperation(LdapSession session,
                                    org.apache.directory.shared.ldap.extras.extended.StoredProcedureRequest req)
                             throws Exception
Description copied from interface: ExtendedOperationHandler
Handles the specified extended operation.

Specified by:
handleExtendedOperation in interface ExtendedOperationHandler<org.apache.directory.shared.ldap.extras.extended.StoredProcedureRequest,org.apache.directory.shared.ldap.extras.extended.StoredProcedureResponse>
Parameters:
session - the session object related with current connection
req - the LDAP Extended operation request
Throws:
Exception - if failed to handle the operation

getOid

public String getOid()
Returns the EXTENSION_OID of the extended request this handler can handle.

Specified by:
getOid in interface ExtendedOperationHandler<org.apache.directory.shared.ldap.extras.extended.StoredProcedureRequest,org.apache.directory.shared.ldap.extras.extended.StoredProcedureResponse>

getExtensionOids

public Set<String> getExtensionOids()
The OIDs of the extensions supported by this handler. This includes the request as well as any responses associated with the request. These OIDs will be registered with the server to publish them as supportedExtensions.

Specified by:
getExtensionOids in interface ExtendedOperationHandler<org.apache.directory.shared.ldap.extras.extended.StoredProcedureRequest,org.apache.directory.shared.ldap.extras.extended.StoredProcedureResponse>
Returns:
the OIDs supported by this handler.

setLdapServer

public void setLdapServer(LdapServer ldapServer)
Sets the LDAP server for this extendedOperation handler.

Specified by:
setLdapServer in interface ExtendedOperationHandler<org.apache.directory.shared.ldap.extras.extended.StoredProcedureRequest,org.apache.directory.shared.ldap.extras.extended.StoredProcedureResponse>
Parameters:
ldapServer - the ldap protocol server


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