|
||||||||||
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.controls.AbstractControl
org.apache.directory.shared.ldap.codec.controls.ControlImpl
public class ControlImpl
A genericcodec Control.
Field Summary |
---|
Fields inherited from class org.apache.directory.shared.ldap.codec.controls.AbstractControl |
---|
decoder, value, valueLength |
Fields inherited from class org.apache.directory.shared.asn1.AbstractAsn1Object |
---|
parent |
Constructor Summary | |
---|---|
ControlImpl(java.lang.String oid)
Default constructor. |
Method Summary | |
---|---|
int |
computeLength()
Compute the object length, which is the sum of all inner length. |
java.nio.ByteBuffer |
encode(java.nio.ByteBuffer buffer)
Encode the object to a PDU. |
byte[] |
getValue()
Get the raw control encoded bytes |
void |
setValue(byte[] value)
Set the encoded control value |
Methods inherited from class org.apache.directory.shared.ldap.codec.controls.AbstractControl |
---|
computeLength, getDecoder, getOid, hasValue, isCritical, setCritical, toString |
Methods inherited from class org.apache.directory.shared.asn1.AbstractAsn1Object |
---|
addLength, 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 ControlImpl(java.lang.String oid)
Method Detail |
---|
public void setValue(byte[] value)
setValue
in interface Control
setValue
in class AbstractControl
encodedValue
- The encoded control value to storepublic byte[] getValue()
getValue
in interface Control
getValue
in class AbstractControl
public int computeLength()
computeLength
in interface Asn1Object
computeLength
in interface CodecControl
computeLength
in class AbstractControl
public java.nio.ByteBuffer encode(java.nio.ByteBuffer buffer) throws EncoderException
encode
in interface Asn1Object
encode
in interface CodecControl
encode
in class AbstractControl
buffer
- The buffer where to put the PDU
EncoderException
- if the buffer can't be encoded
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |