org.apache.directory.server.ldap
Interface ExtendedOperationHandler

All Known Implementing Classes:
GracefulShutdownHandler, LaunchDiagnosticUiHandler

public interface ExtendedOperationHandler

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

Version:
$Rev: 434435 $, $Date: 2006-08-24 18:58:56 +0200 (Thu, 24 Aug 2006) $
Author:
Apache Directory Project

Method Summary
 java.util.Set 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(org.apache.mina.common.IoSession session, SessionRegistry registry, org.apache.directory.shared.ldap.message.ExtendedRequest req)
          Handles the specified extended operation.
 void setLdapProvider(LdapProtocolProvider provider)
          Sets the LDAP provider 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 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(org.apache.mina.common.IoSession session,
                             SessionRegistry registry,
                             org.apache.directory.shared.ldap.message.ExtendedRequest req)
                             throws java.lang.Exception
Handles the specified extended operation.

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

setLdapProvider

void setLdapProvider(LdapProtocolProvider provider)
Sets the LDAP provider for this extendedOperation handler.

Parameters:
provider - the ldap protocol provider


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