org.apache.directory.server.ldap
Interface ExtendedOperationHandler

All Known Implementing Classes:
CertGenerationRequestHandler, GracefulShutdownHandler, LaunchDiagnosticUiHandler, StartTlsHandler, StoredProcedureExtendedOperationHandler

public interface ExtendedOperationHandler

An extension (hook) point that enables an implementor to provide his or her own LDAP 'Extended' operation.

Version:
$Rev: 905344 $, $Date: 2010-02-01 18:31:50 +0100 (Mon, 01 Feb 2010) $
Author:
Apache Directory Project
XBean

Method Summary
 java.util.Set<java.lang.String> getExtensionOids()
          The OIDs of the extensions supported by this handler.
 java.lang.String getOid()
          Returns the EXTENSION_OID of the extended request this handler can handle.
 void handleExtendedOperation(LdapSession session, org.apache.directory.shared.ldap.message.internal.InternalExtendedRequest req)
          Handles the specified extended operation.
 void setLdapServer(LdapServer ldapServer)
          Sets the LDAP server for this extendedOperation handler.
 

Method Detail

getOid

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


getExtensionOids

java.util.Set<java.lang.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.

Returns:
the OIDs supported by this handler.

handleExtendedOperation

void handleExtendedOperation(LdapSession session,
                             org.apache.directory.shared.ldap.message.internal.InternalExtendedRequest req)
                             throws java.lang.Exception
Handles the specified extended operation.

Parameters:
session - the session object related with current connection
req - the LDAP Extended operation request
Throws:
java.lang.Exception - if failed to handle the operation

setLdapServer

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

Parameters:
ldapServer - the ldap protocol server


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