public interface ProducerExtensionAccessor
InvocationHandlerDelegate, which methods are called by
the implementation before the producer calls the portlet targeted by the WSRP request and after the invocation on
the portlet is made but before the WSRP response is sent to the consumer.InvocationHandlerDelegate| Modifier and Type | Method and Description |
|---|---|
void |
addRequestExtension(Class fromClass,
UnmarshalledExtension extension)
Adds the specified unmarshalled extension to the list of extensions associated with instances the specified WSRP
request class before the request is processed by the producer's portlet container.
|
void |
addResponseExtension(Class wsrpResponseClass,
Object extension)
Add the specified extension to be set to the targeted WSRP response class before it is sent to the consumer.
|
void |
clear()
Clears the currently held extensions.
|
List<UnmarshalledExtension> |
getRequestExtensionsFor(Class targetClass)
Retrieves the list of unmarshalled extensions currently associated with instances of the specified target
consumer
request class.
|
List<Extension> |
getResponseExtensionsFor(Class wsrpResponseClass)
Retrieves the extensions associated with the specified WSRP response class so that they can be set appropriately
on the response sent to the consumer.
|
void addRequestExtension(Class fromClass, UnmarshalledExtension extension)
fromClass - the class to which extensions should be associatedextension - the unmarshalled extension to add to the specified request parameterList<UnmarshalledExtension> getRequestExtensionsFor(Class targetClass)
InteractionParams, EventParams, MarkupParams or ResourceParamstargetClass - the class of request parameters for which extensions are to be retrievedList<Extension> getResponseExtensionsFor(Class wsrpResponseClass)
wsrpResponseClass - the class on which extensions are to be setvoid addResponseExtension(Class wsrpResponseClass, Object extension)
MarkupResponse, BlockingInteractionResponse,
HandleEventsResponse or ResourceResponse.
These classes are the ones that contain the specific information pertaining to markup, interaction, resource or event responses.wsrpResponseClass - the class of elements on which extensions need to be added before being sent to the producerextension - the extension to be added in the form of a Element (strongly recommended) or a Serializable
objectvoid clear()
Copyright © 2006-2014 GateIn. All Rights Reserved.