public interface ExtendedRequestFactory<Q extends ExtendedRequest<P>,P extends ExtendedResponse>
Modifier and Type | Method and Description |
---|---|
ExtendedRequestDecorator<Q,P> |
decorate(ExtendedRequest<?> modelRequest)
Decorates a non-decorated request.
|
ExtendedResponseDecorator<P> |
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.
|
Q |
newRequest() |
Q |
newRequest(byte[] value)
Returns a new
ExtendedRequestDecorator with the following encoded value. |
P |
newResponse(byte[] encodedValue)
Creates a new ExtendedResponse, for the ExtendedRequest with a specific
encoded value.
|
String getOid()
Q newRequest()
ExtendedRequestDecorator
.Q newRequest(byte[] value)
ExtendedRequestDecorator
with the following encoded value.value
- the encoded valueExtendedRequestDecorator<Q,P> decorate(ExtendedRequest<?> modelRequest)
modelRequest
- the non decorated model requestP newResponse(byte[] encodedValue) throws DecoderException
encodedValue
- The encoded value for the ExtendedResponse instance.DecoderException
ExtendedResponseDecorator<P> decorate(ExtendedResponse decoratedMessage)
decoratedMessage
- the message to be decorated.Copyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.