public class GracefulDisconnectFactory extends java.lang.Object implements ExtendedOperationFactory
ExtendedOperationFactory for creating cancel extended request response
pairs.| Modifier and Type | Field and Description |
|---|---|
private LdapApiService |
codec |
| Constructor and Description |
|---|
GracefulDisconnectFactory(LdapApiService codec) |
| Modifier and Type | Method and Description |
|---|---|
ExtendedRequestDecorator<ExtendedRequest> |
decorate(ExtendedRequest modelRequest)
Decorates a non-decorated request.
|
ExtendedResponse |
decorate(ExtendedResponse decoratedMessage)
Decorates an ExtendedResponse which may or may not be of the expected
type.
|
java.lang.String |
getOid()
Gets the OID of the extended requests this factory generates.
|
ExtendedRequest |
newRequest(byte[] value)
Returns a new
ExtendedRequestDecorator with the following encoded value. |
GracefulDisconnectResponse |
newResponse(byte[] encodedValue)
Creates a new ExtendedResponse, for the ExtendedRequest with a specific
encoded value.
|
private LdapApiService codec
public GracefulDisconnectFactory(LdapApiService codec)
public ExtendedRequestDecorator<ExtendedRequest> decorate(ExtendedRequest modelRequest)
decorate in interface ExtendedOperationFactorymodelRequest - the non decorated model requestpublic ExtendedResponse decorate(ExtendedResponse decoratedMessage)
decorate in interface ExtendedOperationFactorydecoratedMessage - the message to be decorated.public java.lang.String getOid()
getOid in interface ExtendedOperationFactorypublic ExtendedRequest newRequest(byte[] value)
ExtendedRequestDecorator with the following encoded value.newRequest in interface ExtendedOperationFactoryvalue - the encoded valuepublic GracefulDisconnectResponse newResponse(byte[] encodedValue) throws DecoderException
newResponse in interface ExtendedOperationFactoryencodedValue - The encoded value for the ExtendedResponse instance.DecoderException