public class GracefulShutdownFactory extends AbstractExtendedOperationFactory
ExtendedOperationFactory
for creating cancel extended request response
pairs.Constructor and Description |
---|
GracefulShutdownFactory(LdapApiService codec)
Creates a new instance of GracefulShutdownFactory.
|
Modifier and Type | Method and Description |
---|---|
void |
decodeValue(ExtendedRequest extendedRequest,
byte[] requestValue)
Decode the value part of the extended request operation.
|
void |
encodeValue(Asn1Buffer buffer,
ExtendedRequest extendedRequest)
Encode the value part of the extended request operation.
|
String |
getOid()
Gets the OID of the extended requests this factory generates.
|
GracefulShutdownRequest |
newRequest()
Returns a new
ExtendedRequest with no value |
GracefulShutdownRequest |
newRequest(byte[] encodedValue)
Returns a new
ExtendedRequest with the following encoded value. |
GracefulShutdownResponse |
newResponse()
Creates a new ExtendedResponse, for the ExtendedRequest with no value
|
decodeValue, encodeValue, newResponse
public GracefulShutdownFactory(LdapApiService codec)
codec
- The codec for this factory.public String getOid()
getOid
in interface ExtendedOperationFactory
getOid
in class AbstractExtendedOperationFactory
public GracefulShutdownRequest newRequest()
ExtendedRequest
with no valuepublic GracefulShutdownRequest newRequest(byte[] encodedValue) throws DecoderException
ExtendedRequest
with the following encoded value.newRequest
in interface ExtendedOperationFactory
newRequest
in class AbstractExtendedOperationFactory
encodedValue
- the encoded valueDecoderException
- If we can't decode the responsepublic GracefulShutdownResponse newResponse()
public void decodeValue(ExtendedRequest extendedRequest, byte[] requestValue) throws DecoderException
decodeValue
in interface ExtendedOperationFactory
decodeValue
in class AbstractExtendedOperationFactory
extendedRequest
- The ExtendedRequest Operation to feedrequestValue
- The request value to decodeDecoderException
- If the value cannot be decodedpublic void encodeValue(Asn1Buffer buffer, ExtendedRequest extendedRequest)
encodeValue
in interface ExtendedOperationFactory
encodeValue
in class AbstractExtendedOperationFactory
buffer
- The buffer into which to put the encoded valueextendedRequest
- The ExtendedRequest Operation to encodeCopyright © 2003–2023 The Apache Software Foundation. All rights reserved.