org.apache.directory.shared.ldap.codec.controls.replication.syncStateValue
Class SyncStateValueControlDecoder

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

public class SyncStateValueControlDecoder
extends Asn1Decoder
implements ControlDecoder

A decoder for SyncStateValueControl.

Version:
$Rev: 741888 $, $Date: 2009-02-07 13:57:03 +0100 (Sat, 07 Feb 2009) $,
Author:
Apache Directory Project

Constructor Summary
SyncStateValueControlDecoder()
           
 
Method Summary
 Asn1Object decode(byte[] controlBytes)
          Decode the syncStateValue control
 java.lang.String getControlType()
          Return the syncStateValue 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

SyncStateValueControlDecoder

public SyncStateValueControlDecoder()
Method Detail

getControlType

public java.lang.String getControlType()
Return the syncStateValue 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
Decode the syncStateValue control

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


Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.