public class CancelRequestDecorator extends ExtendedRequestDecorator<CancelRequest> implements CancelRequest, Asn1Object
| Modifier and Type | Field and Description |
|---|---|
private CancelRequest |
cancelRequest
The Id of the the message to cancel
|
private int |
cancelSequenceLength
Length of the sequence
|
private static org.slf4j.Logger |
LOG |
requestValuemessageLengthEXTENSION_OID| Constructor and Description |
|---|
CancelRequestDecorator(LdapApiService codec,
CancelRequest decoratedMessage) |
| Modifier and Type | Method and Description |
|---|---|
(package private) int |
computeLengthInternal()
Compute the Cancel length
0x30 L1
|
+--> 0x02 0x0(1-4) [0..2^31-1]
|
(package private) java.nio.ByteBuffer |
encodeInternal()
Encodes the cancel extended operation.
|
int |
getCancelId() |
byte[] |
getRequestValue() |
void |
setCancelId(int cancelId)
Sets the message to cancel by id.
|
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, setRequestNamegetResponseTypegetResultResponsehasResponseget, getControl, getControls, getMessageId, getType, hasControl, putcomputeLength, encodeprivate static final org.slf4j.Logger LOG
private CancelRequest cancelRequest
private int cancelSequenceLength
public CancelRequestDecorator(LdapApiService codec, CancelRequest decoratedMessage)
public int getCancelId()
getCancelId in interface CancelRequestpublic void setCancelId(int cancelId)
setCancelId in interface CancelRequestcancelId - The id of the message to cancel.public byte[] getRequestValue()
getRequestValue in class ExtendedRequestDecorator<CancelRequest>public void setRequestValue(byte[] requestValue)
setRequestValue in class ExtendedRequestDecorator<CancelRequest>payload - byte array of data encapsulating ext. req. parametersint computeLengthInternal()
java.nio.ByteBuffer encodeInternal()
throws EncoderException
EncoderException - If anything goes wrong.