Class ManageDsaITDecorator
- java.lang.Object
-
- org.apache.directory.api.ldap.codec.api.ControlDecorator<ManageDsaIT>
-
- org.apache.directory.api.ldap.codec.controls.manageDsaIT.ManageDsaITDecorator
-
- All Implemented Interfaces:
Asn1Object
,CodecControl<ManageDsaIT>
,Decorator<ManageDsaIT>
,Control
,ManageDsaIT
public class ManageDsaITDecorator extends ControlDecorator<ManageDsaIT> implements ManageDsaIT
A decorating wrapper for a ManageDsaIT Control.- Author:
- Apache Directory Project
-
-
Field Summary
-
Fields inherited from interface org.apache.directory.api.ldap.model.message.controls.ManageDsaIT
OID
-
-
Constructor Summary
Constructors Constructor Description ManageDsaITDecorator(LdapApiService codec, ManageDsaIT control)
Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class org.apache.directory.api.ldap.codec.api.ControlDecorator
equals, getCodecService, getDecorated, getOid, getValue, hashCode, hasValue, isCritical, setCritical, setDecorated, setValue, toString
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.Control
getOid, isCritical, setCritical
-
-
-
-
Constructor Detail
-
ManageDsaITDecorator
public ManageDsaITDecorator(LdapApiService codec, ManageDsaIT control)
Default constructor- Parameters:
codec
- The LDAP service instancecontrol
- The ManageDsaIT to decorate
-
-
Method Detail
-
computeLength
public int computeLength()
Description copied from interface:Asn1Object
Compute the object length, which is the sum of all inner length.- Specified by:
computeLength
in interfaceAsn1Object
- Returns:
- 0 every time.
-
decode
public Asn1Object decode(byte[] controlBytes) throws DecoderException
Decodes raw ASN.1 encoded bytes into an Asn1Object for the control.- Specified by:
decode
in interfaceCodecControl<ManageDsaIT>
- Parameters:
controlBytes
- the encoded control bytes- Returns:
- the decoded Asn1Object for the control
- Throws:
DecoderException
- if anything goes wrong
-
encode
public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
Encode the object to a PDU.- Specified by:
encode
in interfaceAsn1Object
- Parameters:
buffer
- The buffer where to put the PDU- Returns:
- The encoded PDU.
- Throws:
EncoderException
- if the buffer can't be encoded
-
-