org.apache.directory.shared.ldap.codec.extended.operations
Class GracefulShutdownDecoder

java.lang.Object
  extended by org.apache.directory.shared.asn1.ber.Asn1Decoder
      extended by org.apache.directory.shared.ldap.codec.extended.operations.GracefulShutdownDecoder
All Implemented Interfaces:
org.apache.directory.shared.asn1.ber.tlv.ITLVBerDecoderMBean

public class GracefulShutdownDecoder
extends org.apache.directory.shared.asn1.ber.Asn1Decoder

A decoder for GracefulShutdowns.

Author:
Apache Directory Project

Constructor Summary
GracefulShutdownDecoder()
           
 
Method Summary
 org.apache.directory.shared.asn1.Asn1Object decode(byte[] stream)
          Decode a PDU which must contain a GracefulShutdown extended operation.
 
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

GracefulShutdownDecoder

public GracefulShutdownDecoder()
Method Detail

decode

public org.apache.directory.shared.asn1.Asn1Object decode(byte[] stream)
                                                   throws org.apache.directory.shared.asn1.codec.DecoderException,
                                                          javax.naming.NamingException
Decode a PDU which must contain a GracefulShutdown extended operation. Note that the stream of bytes much contain a full PDU, not a partial one.

Parameters:
stream - The bytes to be decoded
Returns:
An GracefulShutdown object
Throws:
org.apache.directory.shared.asn1.codec.DecoderException - If the decoding failed
javax.naming.NamingException


Copyright © 2004-2010. All Rights Reserved.