org.apache.directory.shared.ldap.codec.controls.manageDsaIT
Class ManageDsaITDecorator

java.lang.Object
  extended by org.apache.directory.shared.asn1.AbstractAsn1Object
      extended by org.apache.directory.shared.ldap.codec.controls.ControlDecorator<ManageDsaIT>
          extended by 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

Field Summary
 
Fields inherited from class org.apache.directory.shared.ldap.codec.controls.ControlDecorator
value, valueLength
 
Fields inherited from interface org.apache.directory.shared.ldap.model.message.controls.ManageDsaIT
OID
 
Constructor Summary
ManageDsaITDecorator(LdapCodecService codec, ManageDsaIT control)
          Default constructor
 
Method Summary
 int computeLength()
          Returns 0 every time.
 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.shared.ldap.codec.controls.ControlDecorator
equals, getCodecService, getDecorated, getOid, getValue, hashCode, hasValue, isCritical, setCritical, setDecorated, setValue, toString
 
Methods inherited from class org.apache.directory.shared.asn1.AbstractAsn1Object
addLength, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParent
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.directory.shared.ldap.model.message.Control
getOid, isCritical, setCritical
 

Constructor Detail

ManageDsaITDecorator

public ManageDsaITDecorator(LdapCodecService codec,
                            ManageDsaIT control)
Default constructor

Method Detail

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.