public class CascadeDecorator extends ControlDecorator<Cascade> implements CodecControl<Cascade>, Cascade
Constructor and Description |
---|
CascadeDecorator(LdapApiService codec,
Cascade control)
Default constructor
|
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
getValue, hasValue, setValue
getCodecService, getDecorated
getOid, isCritical, setCritical
public CascadeDecorator(LdapApiService codec, Cascade control)
codec
- The LDAP service instancecontrol
- the Control to decoratepublic int computeLength()
ControlDecorator
computeLength
in interface Asn1Object
computeLength
in interface Decorator<Cascade>
computeLength
in class ControlDecorator<Cascade>
public Asn1Object decode(byte[] controlBytes) throws DecoderException
decode
in interface CodecControl<Cascade>
controlBytes
- the encoded control bytesDecoderException
- if anything goes wrongpublic ByteBuffer encode(ByteBuffer buffer) throws EncoderException
Decorator
encode
in interface Asn1Object
encode
in interface Decorator<Cascade>
buffer
- The buffer where to put the PDUEncoderException
- if the buffer can't be encodedCopyright © 2003–2018 The Apache Software Foundation. All rights reserved.