org.apache.directory.shared.ldap.codec.extended.operations
Class GracefulShutdownDecoder
java.lang.Object
org.apache.directory.shared.asn1.ber.Asn1Decoder
org.apache.directory.shared.ldap.codec.extended.operations.GracefulShutdownDecoder
- All Implemented Interfaces:
- ITLVBerDecoderMBean
public class GracefulShutdownDecoder
- extends Asn1Decoder
A decoder for GracefulShutdowns.
- Author:
- Apache Directory Project
Method Summary |
Asn1Object |
decode(byte[] stream)
Decode a PDU which must contain a GracefulShutdown extended operation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GracefulShutdownDecoder
public GracefulShutdownDecoder()
decode
public Asn1Object decode(byte[] stream)
throws DecoderException,
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:
DecoderException
- If the decoding failed
NamingException
Copyright © 2004-2012. All Rights Reserved.