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

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

public class EntryChangeControlDecoder
extends Asn1Decoder
implements ControlDecoder

A decoder for EntryChangeControls.

Author:
Apache Directory Project

Constructor Summary
EntryChangeControlDecoder()
           
 
Method Summary
 Asn1Object decode(byte[] controlBytes)
          Decode the entry change control
 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

EntryChangeControlDecoder

public EntryChangeControlDecoder()
Method Detail

getControlType

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

Specified by:
getControlType in interface ControlDecoder
Returns:
The Entry Change controm OID

decode

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

Specified by:
decode in interface ControlDecoder
Parameters:
controlBytes - The bytes array which contains the encoded entry change
Returns:
A valid EntryChange object
Throws:
DecoderException - If the decoding found an error
NamingException - It will never be throw by this method


Copyright © 2004-2012. All Rights Reserved.