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