Class GracefulShutdownDecoder
- java.lang.Object
-
- org.apache.directory.api.asn1.ber.Asn1Decoder
-
- org.apache.directory.api.ldap.extras.extended.ads_impl.gracefulShutdown.GracefulShutdownDecoder
-
- All Implemented Interfaces:
TLVBerDecoderMBean
public class GracefulShutdownDecoder extends Asn1Decoder
A decoder for GracefulShutdowns.- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description GracefulShutdownDecoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GracefulShutdownRequest
decode(byte[] stream)
Decode a PDU which must contain a GracefulShutdown extended operation.-
Methods inherited from class org.apache.directory.api.asn1.ber.Asn1Decoder
allowIndefiniteLength, decode, disallowIndefiniteLength, getMaxLengthLength, getMaxTagLength, isIndefiniteLengthAllowed, setMaxLengthLength, setMaxTagLength
-
-
-
-
Constructor Detail
-
GracefulShutdownDecoder
public GracefulShutdownDecoder()
-
-
Method Detail
-
decode
public GracefulShutdownRequest decode(byte[] stream) throws DecoderException
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
-
-