Package org.opends.server.extensions
Class CancelExtendedOperation
- java.lang.Object
-
- org.opends.server.api.ExtendedOperationHandler<CancelExtendedOperationHandlerCfg>
-
- org.opends.server.extensions.CancelExtendedOperation
-
public class CancelExtendedOperation extends ExtendedOperationHandler<CancelExtendedOperationHandlerCfg>
This class implements the LDAP cancel extended operation defined in RFC 3909. It is similar to the LDAP abandon operation, with the exception that it requires a response for both the operation that is cancelled and the cancel request (whereas an abandon request never has a response, and if it is successful the abandoned operation won't get one either).
-
-
Constructor Summary
Constructors Constructor Description CancelExtendedOperation()Create an instance of this cancel extended operation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetExtendedOperationName()Retrieves the name associated with this extended operation.StringgetExtendedOperationOID()Retrieves the object OID associated with this extended operation.voidinitializeExtendedOperationHandler(CancelExtendedOperationHandlerCfg config)Initializes this extended operation handler based on the information in the provided configuration entry.voidprocessExtendedOperation(ExtendedOperation operation)Processes the provided extended operation.-
Methods inherited from class org.opends.server.api.ExtendedOperationHandler
finalizeExtendedOperationHandler, getSupportedControls, getSupportedFeatures, isConfigurationAcceptable, supportsControl, supportsFeature
-
-
-
-
Method Detail
-
initializeExtendedOperationHandler
public void initializeExtendedOperationHandler(CancelExtendedOperationHandlerCfg config) throws ConfigException, InitializationException
Description copied from class:ExtendedOperationHandlerInitializes this extended operation handler based on the information in the provided configuration entry. It should also register itself with the Directory Server for the particular kinds of extended operations that it will process.- Overrides:
initializeExtendedOperationHandlerin classExtendedOperationHandler<CancelExtendedOperationHandlerCfg>- Parameters:
config- The extended operation handler configuration that contains the information to use to initialize this extended operation handler.- Throws:
ConfigException- If an unrecoverable problem arises in the process of performing the initialization.InitializationException- If a problem occurs during initialization that is not related to the server configuration.
-
processExtendedOperation
public void processExtendedOperation(ExtendedOperation operation)
Processes the provided extended operation.- Specified by:
processExtendedOperationin classExtendedOperationHandler<CancelExtendedOperationHandlerCfg>- Parameters:
operation- The extended operation to be processed.
-
getExtendedOperationOID
public String getExtendedOperationOID()
Description copied from class:ExtendedOperationHandlerRetrieves the object OID associated with this extended operation.- Overrides:
getExtendedOperationOIDin classExtendedOperationHandler<CancelExtendedOperationHandlerCfg>- Returns:
- the oid associated with this extended operation, if any, or
nullif there is none.
-
getExtendedOperationName
public String getExtendedOperationName()
Description copied from class:ExtendedOperationHandlerRetrieves the name associated with this extended operation.- Overrides:
getExtendedOperationNamein classExtendedOperationHandler<CancelExtendedOperationHandlerCfg>- Returns:
- The name associated with this extended operation,
if any, or
nullif there is none.
-
-