public class CancelFactory extends Object implements ExtendedRequestFactory<CancelRequest,CancelResponse>
ExtendedRequestFactory
for creating cancel extended request response
pairs.Constructor and Description |
---|
CancelFactory(LdapApiService codec) |
Modifier and Type | Method and Description |
---|---|
ExtendedRequestDecorator<CancelRequest,CancelResponse> |
decorate(ExtendedRequest<?> modelRequest)
Decorates a non-decorated request.
|
ExtendedResponseDecorator<CancelResponse> |
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.
|
CancelRequest |
newRequest() |
CancelRequest |
newRequest(byte[] value)
Returns a new
ExtendedRequestDecorator with the following encoded value. |
CancelResponse |
newResponse(byte[] encodedValue)
Creates a new ExtendedResponse, for the ExtendedRequest with a specific
encoded value.
|
public CancelFactory(LdapApiService codec)
public String getOid()
getOid
in interface ExtendedRequestFactory<CancelRequest,CancelResponse>
public CancelRequest newRequest()
newRequest
in interface ExtendedRequestFactory<CancelRequest,CancelResponse>
ExtendedRequestDecorator
.public CancelResponse newResponse(byte[] encodedValue) throws DecoderException
newResponse
in interface ExtendedRequestFactory<CancelRequest,CancelResponse>
encodedValue
- The encoded value for the ExtendedResponse instance.DecoderException
public CancelRequest newRequest(byte[] value)
ExtendedRequestDecorator
with the following encoded value.newRequest
in interface ExtendedRequestFactory<CancelRequest,CancelResponse>
value
- the encoded valuepublic ExtendedRequestDecorator<CancelRequest,CancelResponse> decorate(ExtendedRequest<?> modelRequest)
decorate
in interface ExtendedRequestFactory<CancelRequest,CancelResponse>
modelRequest
- the non decorated model requestpublic ExtendedResponseDecorator<CancelResponse> decorate(ExtendedResponse decoratedMessage)
decorate
in interface ExtendedRequestFactory<CancelRequest,CancelResponse>
decoratedMessage
- the message to be decorated.Copyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.