public class GracefulShutdownFactory extends Object implements ExtendedRequestFactory<GracefulShutdownRequest,GracefulShutdownResponse>
ExtendedRequestFactory
for creating cancel extended request response
pairs.Constructor and Description |
---|
GracefulShutdownFactory(LdapApiService codec) |
Modifier and Type | Method and Description |
---|---|
ExtendedRequestDecorator<GracefulShutdownRequest,GracefulShutdownResponse> |
decorate(ExtendedRequest<?> modelRequest)
Decorates a non-decorated request.
|
ExtendedResponseDecorator<GracefulShutdownResponse> |
decorate(ExtendedResponse decoratedMessage)
Decorates an ExtendedResponse which may or may not be of the expected
type.
|
String |
getOid()
Gets the OID of the extended requests this factory generates.
|
GracefulShutdownRequest |
newRequest() |
GracefulShutdownRequest |
newRequest(byte[] value)
Returns a new
ExtendedRequestDecorator with the following encoded value. |
GracefulShutdownResponse |
newResponse(byte[] encodedValue)
Creates a new ExtendedResponse, for the ExtendedRequest with a specific
encoded value.
|
public GracefulShutdownFactory(LdapApiService codec)
public String getOid()
getOid
in interface ExtendedRequestFactory<GracefulShutdownRequest,GracefulShutdownResponse>
public GracefulShutdownRequest newRequest()
newRequest
in interface ExtendedRequestFactory<GracefulShutdownRequest,GracefulShutdownResponse>
ExtendedRequestDecorator
.public GracefulShutdownResponse newResponse(byte[] encodedValue) throws DecoderException
newResponse
in interface ExtendedRequestFactory<GracefulShutdownRequest,GracefulShutdownResponse>
encodedValue
- The encoded value for the ExtendedResponse instance.DecoderException
public GracefulShutdownRequest newRequest(byte[] value)
ExtendedRequestDecorator
with the following encoded value.newRequest
in interface ExtendedRequestFactory<GracefulShutdownRequest,GracefulShutdownResponse>
value
- the encoded valuepublic ExtendedRequestDecorator<GracefulShutdownRequest,GracefulShutdownResponse> decorate(ExtendedRequest<?> modelRequest)
decorate
in interface ExtendedRequestFactory<GracefulShutdownRequest,GracefulShutdownResponse>
modelRequest
- the non decorated model requestpublic ExtendedResponseDecorator<GracefulShutdownResponse> decorate(ExtendedResponse decoratedMessage)
decorate
in interface ExtendedRequestFactory<GracefulShutdownRequest,GracefulShutdownResponse>
decoratedMessage
- the message to be decorated.Copyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.