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

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

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

A decoder for PSearchControls.

Author:
Apache Directory Project

Constructor Summary
PSearchControlDecoder()
           
 
Method Summary
 org.apache.directory.shared.asn1.Asn1Object decode(byte[] controlBytes)
          Decode the persistence search control
 java.lang.String getControlType()
          Return the persistence search OID
 
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

PSearchControlDecoder

public PSearchControlDecoder()
Method Detail

getControlType

public java.lang.String getControlType()
Return the persistence search OID

Specified by:
getControlType in interface ControlDecoder
Returns:
the control type (an OID string)
See Also:
ControlDecoder.getControlType()

decode

public org.apache.directory.shared.asn1.Asn1Object decode(byte[] controlBytes)
                                                   throws org.apache.directory.shared.asn1.codec.DecoderException,
                                                          javax.naming.NamingException
Decode the persistence search control

Specified by:
decode in interface ControlDecoder
Parameters:
controlBytes - The bytes array which contains the encoded persistence search
Returns:
A valid PersistenceSearch object
Throws:
org.apache.directory.shared.asn1.codec.DecoderException - If the decoding found an error
javax.naming.NamingException - It will never be throw by this method


Copyright © 2004-2007 null. All Rights Reserved.