Package org.opends.server.extensions
Class GetConnectionIDExtendedOperation
java.lang.Object
org.opends.server.api.ExtendedOperationHandler<GetConnectionIdExtendedOperationHandlerCfg>
org.opends.server.extensions.GetConnectionIDExtendedOperation
public final class GetConnectionIDExtendedOperation
extends ExtendedOperationHandler<GetConnectionIdExtendedOperationHandlerCfg>
This class implements the "Get Connection ID" extended operation that can be used to get the connection ID of the
associated client connection.
-
Constructor Summary
ConstructorDescriptionCreate an instance of this "Get Connection ID" extended operation. -
Method Summary
Modifier and TypeMethodDescriptionstatic long
decodeResponseValue
(ByteString responseValue) Decodes the provided ASN.1 octet string to extract the connection ID.static ByteString
encodeResponseValue
(long connectionID) Encodes the provided connection ID in an octet string suitable for use as the value for this extended operation.Retrieves the name associated with this extended operation.Retrieves the object OID associated with this extended operation.void
processExtendedOperation
(ExtendedOperation operation) Processes the provided extended operation.Methods inherited from class org.opends.server.api.ExtendedOperationHandler
finalizeExtendedOperationHandler, getServerContext, getSupportedControls, getSupportedFeatures, initializeExtendedOperationHandler, isConfigurationAcceptable, supportsControl
-
Constructor Details
-
GetConnectionIDExtendedOperation
public GetConnectionIDExtendedOperation()Create an instance of this "Get Connection ID" extended operation. All initialization should be performed in theinitializeExtendedOperationHandler
method.
-
-
Method Details
-
processExtendedOperation
Description copied from class:ExtendedOperationHandler
Processes the provided extended operation.- Specified by:
processExtendedOperation
in classExtendedOperationHandler<GetConnectionIdExtendedOperationHandlerCfg>
- Parameters:
operation
- The extended operation to be processed.
-
encodeResponseValue
Encodes the provided connection ID in an octet string suitable for use as the value for this extended operation.- Parameters:
connectionID
- The connection ID to be encoded.- Returns:
- The ASN.1 octet string containing the encoded connection ID.
-
decodeResponseValue
Decodes the provided ASN.1 octet string to extract the connection ID.- Parameters:
responseValue
- The response value to be decoded.- Returns:
- The connection ID decoded from the provided response value.
-
getExtendedOperationOID
Description copied from class:ExtendedOperationHandler
Retrieves the object OID associated with this extended operation.- Specified by:
getExtendedOperationOID
in classExtendedOperationHandler<GetConnectionIdExtendedOperationHandlerCfg>
- Returns:
- the oid associated with this extended operation, if any, or
null
if there is none.
-
getExtendedOperationName
Description copied from class:ExtendedOperationHandler
Retrieves the name associated with this extended operation.- Specified by:
getExtendedOperationName
in classExtendedOperationHandler<GetConnectionIdExtendedOperationHandlerCfg>
- Returns:
- The name associated with this extended operation, if any, or
null
if there is none.
-