public class CancelRequestDecorator
extends org.apache.directory.api.ldap.codec.decorators.ExtendedRequestDecorator<org.apache.directory.api.ldap.extras.extended.cancel.CancelRequest>
implements org.apache.directory.api.ldap.extras.extended.cancel.CancelRequest, org.apache.directory.api.asn1.Asn1Object
| Modifier and Type | Field and Description |
|---|---|
private org.apache.directory.api.ldap.extras.extended.cancel.CancelRequest |
cancelRequest
The Id of the the message to cancel
|
private int |
cancelSequenceLength
Length of the sequence
|
private static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
CancelRequestDecorator(org.apache.directory.api.ldap.codec.api.LdapApiService codec,
org.apache.directory.api.ldap.extras.extended.cancel.CancelRequest decoratedMessage)
Creates a new instance of CancelRequestDecorator.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) int |
computeLengthInternal()
Compute the Cancel length
|
(package private) ByteBuffer |
encodeInternal()
Encodes the cancel extended operation.
|
int |
getCancelId() |
byte[] |
getRequestValue() |
void |
setCancelId(int cancelId) |
void |
setRequestValue(byte[] requestValue)
Sets the extended request's requestValue portion of the PDU.
|
addAllControls, addControl, computeLength, encode, getRequestName, removeControl, setMessageId, setRequestNameabandon, addAbandonListener, getResponseType, isAbandonedgetResultResponse, hasResponseget, getCodecService, getControl, getControls, getControlsLength, getCurrentControl, getDecorated, getDecorator, getMessageId, getMessageLength, getType, hasControl, put, setControlsLength, setMessageLength, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAllControls, addControl, getRequestName, removeControl, setMessageId, setRequestNamegetResponseTypegetResultResponseprivate static final org.slf4j.Logger LOG
private org.apache.directory.api.ldap.extras.extended.cancel.CancelRequest cancelRequest
private int cancelSequenceLength
public CancelRequestDecorator(org.apache.directory.api.ldap.codec.api.LdapApiService codec,
org.apache.directory.api.ldap.extras.extended.cancel.CancelRequest decoratedMessage)
codec - The LDAP Service to usedecoratedMessage - The canceled requestpublic int getCancelId()
getCancelId in interface org.apache.directory.api.ldap.extras.extended.cancel.CancelRequestpublic void setCancelId(int cancelId)
setCancelId in interface org.apache.directory.api.ldap.extras.extended.cancel.CancelRequestpublic byte[] getRequestValue()
getRequestValue in class org.apache.directory.api.ldap.codec.decorators.ExtendedRequestDecorator<org.apache.directory.api.ldap.extras.extended.cancel.CancelRequest>public void setRequestValue(byte[] requestValue)
setRequestValue in class org.apache.directory.api.ldap.codec.decorators.ExtendedRequestDecorator<org.apache.directory.api.ldap.extras.extended.cancel.CancelRequest>requestValue - byte array of data encapsulating ext. req. parametersint computeLengthInternal()
0x30 L1 | +--> 0x02 0x0(1-4) [0..2^31-1]
ByteBuffer encodeInternal() throws org.apache.directory.api.asn1.EncoderException
org.apache.directory.api.asn1.EncoderException - If anything goes wrong.Copyright © 2003–2018 The Apache Software Foundation. All rights reserved.