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

All Known Implementing Classes:
CascadeControlDecoder, EntryChangeControlDecoder, ManageDsaITControlDecoder, PagedResultsControlDecoder, PersistentSearchControlDecoder, SubentriesControlDecoder, SyncDoneValueControlDecoder, SyncInfoValueControlDecoder, SyncRequestValueControlDecoder, SyncStateValueControlDecoder

public interface ControlDecoder

An interface for decoders of controls.

Version:
$Rev: 905338 $, $Date: 2010-02-01 18:07:13 +0100 (Mon, 01 Feb 2010) $,
Author:
Apache Directory Project

Method Summary
 Asn1Object decode(byte[] controlBytes, Control control)
          Decodes raw ASN.1 encoded bytes into an Asn1Object for the control.
 

Method Detail

decode

Asn1Object decode(byte[] controlBytes,
                  Control control)
                  throws DecoderException
Decodes raw ASN.1 encoded bytes into an Asn1Object for the control.

Parameters:
controlBytes - the encoded control bytes
control - The control to feed
Returns:
the decoded Asn1Object for the control
Throws:
DecoderException - if anything goes wrong


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