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

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

public interface ControlDecoder

An interface for decoders of controls.

Version:
$Rev: 664290 $, $Date: 2008-06-07 08:28:06 +0200 (Sa, 07 Jun 2008) $,
Author:
Apache Directory Project

Method Summary
 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

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

Returns:
the control type (an OID string)

decode

Asn1Object decode(byte[] controlBytes)
                  throws 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:
DecoderException - if anything goes wrong


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.