|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.shared.asn1.AbstractAsn1Object
org.apache.directory.shared.ldap.codec.extended.operations.cancel.Cancel
public class Cancel
An extended operation to proceed a Cancel operation, as described in RFC 3909
cancelRequestValue ::= SEQUENCE { cancelID MessageID -- MessageID is as defined in [RFC2251] }
Field Summary |
---|
Fields inherited from class org.apache.directory.shared.asn1.AbstractAsn1Object |
---|
parent |
Constructor Summary | |
---|---|
Cancel()
Default constructor. |
|
Cancel(int cancelId)
Create a Cancel object, with a messageId |
Method Summary | |
---|---|
int |
computeLength()
Compute the Cancel length 0x30 L1 | +--> 0x02 0x0(1-4) [0..2^31-1] |
java.nio.ByteBuffer |
encode()
Encodes the cancel extended operation. |
int |
getCancelId()
Get the message Id of the request to cancel |
void |
setCancelId(int cancelId)
Set the cancelId |
java.lang.String |
toString()
Return a string representation of the cancel |
Methods inherited from class org.apache.directory.shared.asn1.AbstractAsn1Object |
---|
addLength, encode, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Cancel(int cancelId)
cancelId
- The Id of the request to cancelpublic Cancel()
Method Detail |
---|
public int getCancelId()
public void setCancelId(int cancelId)
cancelId
- The Id of the request to cancelpublic int computeLength()
computeLength
in interface Asn1Object
computeLength
in class AbstractAsn1Object
public java.nio.ByteBuffer encode() throws EncoderException
EncoderException
- If anything goes wrong.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |