public class Cancel extends AbstractAsn1Object
cancelRequestValue ::= SEQUENCE { cancelID MessageID -- MessageID is as defined in [RFC2251] }
Constructor and Description |
---|
Cancel()
Default constructor.
|
Cancel(int cancelId)
Create a Cancel object, with a messageId
|
Modifier and Type | Method and Description |
---|---|
int |
computeLength()
Compute the Cancel length
0x30 L1
|
+--> 0x02 0x0(1-4) [0..2^31-1]
|
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
|
String |
toString()
Return a string representation of the cancel
|
addLength, encode, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParent
public Cancel(int cancelId)
cancelId
- The Id of the request to cancelpublic Cancel()
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 ByteBuffer encode() throws EncoderException
EncoderException
- If anything goes wrong.Copyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.