|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ExtendedRequestFactory<Q extends ExtendedRequest<P>,P extends ExtendedResponse>
The factor interface, defined by the codec API for creating new ExtendedRequests.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
String getOid()
Q newRequest()
ExtendedRequestDecorator.Q newRequest(byte[] value)
ExtendedRequestDecorator with the following encoded value.
value - the encoded value
ExtendedRequestDecorator<Q,P> decorate(ExtendedRequest<?> modelRequest)
modelRequest - the non decorated model request
P newResponse(byte[] encodedValue)
throws DecoderException
encodedValue - The encoded value for the ExtendedResponse instance.
DecoderExceptionExtendedResponseDecorator<P> decorate(ExtendedResponse decoratedMessage)
decoratedMessage - the message to be decorated.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||