public class BasicControlDecorator extends ControlDecorator<Control>
LdapApiService
.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, toString
public 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()
public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
buffer
- The buffer where to put the PDUEncoderException
- if the buffer can't be encodedCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.