org.apache.directory.shared.ldap.codec.controls.manageDsaIT
Class ManageDsaITDecorator
java.lang.Object
org.apache.directory.shared.asn1.AbstractAsn1Object
org.apache.directory.shared.ldap.codec.controls.ControlDecorator<ManageDsaIT>
org.apache.directory.shared.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
| Fields inherited from interface org.apache.directory.shared.ldap.model.message.controls.ManageDsaIT |
OID |
| Methods inherited from class org.apache.directory.shared.ldap.codec.controls.ControlDecorator |
equals, getCodecService, getDecorated, getOid, getValue, hashCode, hasValue, isCritical, setCritical, setDecorated, setValue, toString |
ManageDsaITDecorator
public ManageDsaITDecorator(LdapCodecService codec,
ManageDsaIT control)
- Default constructor
computeLength
public int computeLength()
- Returns 0 every time.
- Specified by:
computeLength in interface Asn1Object- Specified by:
computeLength in interface Decorator<ManageDsaIT>- Overrides:
computeLength in class ControlDecorator<ManageDsaIT>
- Returns:
- The object's computed length
decode
public Asn1Object decode(byte[] controlBytes)
throws DecoderException
- Description copied from interface:
CodecControl
- Decodes raw ASN.1 encoded bytes into an Asn1Object for the control.
- Specified by:
decode in interface CodecControl<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
- Description copied from interface:
Decorator
- Encode the object to a PDU.
- Specified by:
encode in interface Asn1Object- Specified by:
encode in interface Decorator<ManageDsaIT>- Overrides:
encode in class AbstractAsn1Object
- Parameters:
buffer - The buffer where to put the PDU
- Returns:
- The PDU.
- Throws:
EncoderException - if the buffer can't be encoded
Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.