|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.shared.asn1.Asn1Object
org.apache.directory.shared.ldap.codec.Control
A Asn1Object to store a Control.
Field Summary |
Fields inherited from class org.apache.directory.shared.asn1.Asn1Object |
parent |
Constructor Summary | |
Control()
|
Method Summary | |
int |
computeLength()
Compute the Control length Control : 0x30 L1 | +--> 0x04 L2 controlType [+--> 0x01 0x01 criticality] [+--> 0x04 L3 controlValue] Control length = Length(0x30) + length(L1) + Length(0x04) + Length(L2) + L2 [+ Length(0x01) + 1 + 1] [+ Length(0x04) + Length(L3) + L3] |
java.nio.ByteBuffer |
encode(java.nio.ByteBuffer buffer)
Generate the PDU which contains the Control. |
java.lang.String |
getControlType()
Get the control type |
java.lang.Object |
getControlValue()
Get the control value |
boolean |
getCriticality()
Get the criticality |
byte[] |
getEncodedValue()
Get the raw control encoded bytes |
void |
setControlType(LdapString controlType)
Set the control type |
void |
setControlValue(java.lang.Object controlValue)
Set the control value |
void |
setCriticality(boolean criticality)
Set the criticality |
void |
setEncodedValue(byte[] encodedValue)
Set the encoded control value |
java.lang.String |
toString()
Return a String representing a Control |
Methods inherited from class org.apache.directory.shared.asn1.Asn1Object |
addLength, getCurrentLength, getExpectedLength, getParent, setCurrentLength, setExpectedLength, setParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Control()
Method Detail |
public java.lang.String getControlType()
public void setControlType(LdapString controlType)
controlType
- An OID to storepublic java.lang.Object getControlValue()
public void setEncodedValue(byte[] encodedValue)
encodedValue
- The encoded control value to storepublic byte[] getEncodedValue()
public void setControlValue(java.lang.Object controlValue)
controlValue
- The control value to storepublic boolean getCriticality()
true
if the criticality flag is true.public void setCriticality(boolean criticality)
criticality
- The criticality valuepublic int computeLength()
public java.nio.ByteBuffer encode(java.nio.ByteBuffer buffer) throws org.apache.directory.shared.asn1.codec.EncoderException
buffer
- The encoded PDU
org.apache.directory.shared.asn1.codec.EncoderException
- If anything goes wrong.public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |