org.apache.directory.shared.ldap.codec.search.controls.subentries
Class SubentriesControlDecoder

java.lang.Object
  extended by org.apache.directory.shared.asn1.ber.Asn1Decoder
      extended by org.apache.directory.shared.ldap.codec.search.controls.subentries.SubentriesControlDecoder
All Implemented Interfaces:
ITLVBerDecoderMBean, ControlDecoder

public class SubentriesControlDecoder
extends Asn1Decoder
implements ControlDecoder

A decoder for SubEntryControls.

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

Constructor Summary
SubentriesControlDecoder()
           
 
Method Summary
 Asn1Object decode(byte[] controlBytes, Control control)
          Decode the sub entry control
 
Methods inherited from class org.apache.directory.shared.asn1.ber.Asn1Decoder
allowIndefiniteLength, decode, disallowIndefiniteLength, getMaxLengthLength, getMaxTagLength, isIndefiniteLengthAllowed, setMaxLengthLength, setMaxTagLength
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubentriesControlDecoder

public SubentriesControlDecoder()
Method Detail

decode

public Asn1Object decode(byte[] controlBytes,
                         Control control)
                  throws DecoderException
Decode the sub entry control

Specified by:
decode in interface ControlDecoder
Parameters:
controlBytes - The bytes array which contains the encoded sub entry
control - The control to feed
Returns:
A valid SubEntry object
Throws:
DecoderException - If the decoding found an error
javax.naming.NamingException - It will never be throw by this method


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