public class BasicControlDecorator<E> extends ControlDecorator<Control>
ControlFactory for them has not been registered with the
LdapApiService.value, valueLength| Constructor and Description |
|---|
BasicControlDecorator(LdapApiService codec,
Control control)
Creates a new instance of BasicControlDecorator, decorating a
Control. |
| Modifier and Type | Method and Description |
|---|---|
int |
computeLength()
Compute the object length, which is the sum of all inner length.
|
Asn1Object |
decode(byte[] controlBytes)
Decodes raw ASN.1 encoded bytes into an Asn1Object for the control.
|
ByteBuffer |
encode(ByteBuffer buffer)
Encode the object to a PDU.
|
equals, getCodecService, getDecorated, getOid, getValue, hashCode, hasValue, isCritical, setCritical, setDecorated, setValue, toStringpublic BasicControlDecorator(LdapApiService codec, Control control)
Control.codec - The LDAP codec service.control - The Control to decorate.public Asn1Object decode(byte[] controlBytes) throws DecoderException
controlBytes - the encoded control bytesDecoderException - if anything goes wrongpublic int computeLength()
computeLength in interface Asn1ObjectcomputeLength in interface Decorator<Control>computeLength in class ControlDecorator<Control>public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
buffer - The buffer where to put the PDUEncoderException - if the buffer can't be encodedCopyright © 2021. All rights reserved.