org.apache.directory.shared.ldap.codec.search.controls
Class PSearchControlDecoder
java.lang.Object
org.apache.directory.shared.asn1.ber.Asn1Decoder
org.apache.directory.shared.ldap.codec.search.controls.PSearchControlDecoder
- All Implemented Interfaces:
- ITLVBerDecoderMBean, ControlDecoder
public class PSearchControlDecoder
- extends Asn1Decoder
- implements ControlDecoder
A decoder for PSearchControls.
- Author:
- Apache Directory Project
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PSearchControlDecoder
public PSearchControlDecoder()
getControlType
public 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 Asn1Object decode(byte[] controlBytes)
throws DecoderException,
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:
DecoderException
- If the decoding found an error
NamingException
- It will never be throw by this method
Copyright © 2004-2012. All Rights Reserved.