org.apache.directory.shared.ldap.codec.search.controls
Class SubEntryControlDecoder

java.lang.Object
  extended byorg.apache.directory.shared.asn1.ber.Asn1Decoder
      extended byorg.apache.directory.shared.ldap.codec.search.controls.SubEntryControlDecoder
All Implemented Interfaces:
ControlDecoder, org.apache.directory.shared.asn1.ber.tlv.ITLVBerDecoderMBean

public class SubEntryControlDecoder
extends org.apache.directory.shared.asn1.ber.Asn1Decoder
implements ControlDecoder

A decoder for SubEntryControls.

Author:
Apache Directory Project

Constructor Summary
SubEntryControlDecoder()
           
 
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.
 
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

SubEntryControlDecoder

public SubEntryControlDecoder()
Method Detail

getControlType

public java.lang.String getControlType()
Description copied from interface: ControlDecoder
The control type this decoder decodes.

Specified by:
getControlType in interface ControlDecoder
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
Description copied from interface: ControlDecoder
Decodes raw ASN.1 encoded bytes into an Asn1Object for the control.

Specified by:
decode in interface ControlDecoder
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.