Record Class CancelExtendedRequest
java.lang.Object
java.lang.Record
org.forgerock.opendj.ldap.messages.CancelExtendedRequest
- Record Components:
requestId- the request ID of the request to be abandoned.controls- theListcontaining the controls.
- All Implemented Interfaces:
ExtendedRequest<ExtendedResult>, ProtocolOp, Request
public record CancelExtendedRequest(int requestId, List<Control> controls)
extends Record
implements ExtendedRequest<ExtendedResult>
The cancel extended request as defined in RFC 3909. This operation is similar
to the abandon operation, except that it has a response and also requires the
abandoned operation to return a response indicating it was canceled. This
operation should be used instead of the abandon operation when the client
needs an indication of the outcome. This operation may be used to cancel both
interrogation and update operations.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface Request
Request.RequestType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ExtendedRequestDecoder<CancelExtendedRequest, ExtendedResult> A decoder which can be used to decode cancel extended operation requests.static final StringThe OID for the cancel extended operation request. -
Constructor Summary
ConstructorsConstructorDescriptionCancelExtendedRequest(int requestId, List<Control> controls) Creates a newCancelExtendedRequest. -
Method Summary
Modifier and TypeMethodDescriptioncontrols()Returns the value of thecontrolsrecord component.final booleanIndicates whether some other object is "equal to" this one.getOid()Returns the numeric OID associated with this extended request.Returns a decoder which can be used to decoded responses to this extended request.getValue()Returns the value, if any, associated with this extended request.final inthashCode()Returns a hash code value for this object.booleanhasValue()Returnstrueif this extended request has a value.intReturns the value of therequestIdrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface ExtendedRequest
accept, getTypeMethods inherited from interface ProtocolOp
addControl, addControls, containsControl, getControl, getControl, removeControls
-
Field Details
-
DECODER
A decoder which can be used to decode cancel extended operation requests. -
OID
-
-
Constructor Details
-
CancelExtendedRequest
-
-
Method Details
-
getOid
Description copied from interface:ExtendedRequestReturns the numeric OID associated with this extended request.- Specified by:
getOidin interfaceExtendedRequest<ExtendedResult>- Returns:
- the numeric OID associated with this extended request
-
getResultDecoder
Description copied from interface:ExtendedRequestReturns a decoder which can be used to decoded responses to this extended request.- Specified by:
getResultDecoderin interfaceExtendedRequest<ExtendedResult>- Returns:
- A decoder which can be used to decoded responses to this extended request.
-
getValue
Description copied from interface:ExtendedRequestReturns the value, if any, associated with this extended request. Its format is defined by the specification of this extended request.- Specified by:
getValuein interfaceExtendedRequest<ExtendedResult>- Returns:
- The value associated with this extended request, or
nullif there is no value.
-
hasValue
public boolean hasValue()Description copied from interface:ExtendedRequestReturnstrueif this extended request has a value. In some circumstances it may be useful to determine if an extended request has a value, without actually calculating the value and incurring any performance costs.- Specified by:
hasValuein interfaceExtendedRequest<ExtendedResult>- Returns:
trueif this extended request has a value, orfalseif there is no value.
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
requestId
-
controls
-