org.apache.directory.shared.ldap.codec
Interface ControlDecoder

All Known Implementing Classes:
EntryChangeControlDecoder, ManageDsaITControlDecoder, PSearchControlDecoder, SubEntryControlDecoder

public interface ControlDecoder

An interface for decoders of controls.

Author:
Apache Directory Project

Method Summary
 org.apache.directory.shared.asn1.Asn1Object decode(byte[] controlBytes)
          Decodes raw ASN.1 encoded bytes into an Asn1Object for the control.
 java.lang.String getControlType()
          The control type this decoder decodes.
 

Method Detail

getControlType

public java.lang.String getControlType()
The control type this decoder decodes.

Returns:
the control type (an OID string)

decode

public org.apache.directory.shared.asn1.Asn1Object decode(byte[] controlBytes)
                                                   throws org.apache.directory.shared.asn1.codec.DecoderException
Decodes raw ASN.1 encoded bytes into an Asn1Object for the control.

Parameters:
controlBytes - the encoded control bytes
Returns:
the decoded Asn1Object for the control
Throws:
org.apache.directory.shared.asn1.codec.DecoderException - if anything goes wrong


Copyright © 2003-2006 . All Rights Reserved.