public class ActionHandler extends NavigationalStateUpdatingHandler<org.gatein.pc.api.invocation.ActionInvocation,PerformBlockingInteraction,BlockingInteractionResponse>
| Modifier and Type | Class and Description |
|---|---|
static class |
ActionHandler.RequestContextWrapper |
InvocationHandler.RequestPrecursor<Invocation extends org.gatein.pc.api.invocation.PortletInvocation>consumer, debug, log, trace| Constructor and Description |
|---|
ActionHandler(WSRPConsumerImpl consumer) |
| Modifier and Type | Method and Description |
|---|---|
protected List<Extension> |
getExtensionsFrom(BlockingInteractionResponse blockingInteractionResponse)
Extracts extensions from the response.
|
protected RuntimeContext |
getRuntimeContextFrom(PerformBlockingInteraction performBlockingInteraction)
Extracts the RuntimeContext from the specific WSRP request.
|
protected BlockingInteractionResponse |
performRequest(PerformBlockingInteraction interaction)
Performs the actual specific WSRP call for the specified request.
|
protected PerformBlockingInteraction |
prepareRequest(InvocationHandler.RequestPrecursor<org.gatein.pc.api.invocation.ActionInvocation> requestPrecursor,
org.gatein.pc.api.invocation.ActionInvocation invocation)
Created and further prepares the specific requests based on common extracted information from the specified RequestPrecursor and the originating portlet invocation.
|
protected org.gatein.pc.api.invocation.response.PortletInvocationResponse |
processResponse(BlockingInteractionResponse response,
org.gatein.pc.api.invocation.ActionInvocation invocation,
InvocationHandler.RequestPrecursor<org.gatein.pc.api.invocation.ActionInvocation> requestPrecursor)
Converts the WSRP response into a portlet container
PortletInvocationResponse based on its type and on whether other WSRP components need to be informed of potential
changes from the producer. |
processUpdateResponsehandle, performRequest, processExtensions, unwrapWSRPErrorpublic ActionHandler(WSRPConsumerImpl consumer)
protected RuntimeContext getRuntimeContextFrom(PerformBlockingInteraction performBlockingInteraction)
InvocationHandlergetRuntimeContextFrom in class InvocationHandler<org.gatein.pc.api.invocation.ActionInvocation,PerformBlockingInteraction,BlockingInteractionResponse>performBlockingInteraction - the request to extract a RuntimeContext fromprotected BlockingInteractionResponse performRequest(PerformBlockingInteraction interaction) throws Exception
InvocationHandlerperformRequest in class InvocationHandler<org.gatein.pc.api.invocation.ActionInvocation,PerformBlockingInteraction,BlockingInteractionResponse>interaction - the WSRP request to performExceptionprotected PerformBlockingInteraction prepareRequest(InvocationHandler.RequestPrecursor<org.gatein.pc.api.invocation.ActionInvocation> requestPrecursor, org.gatein.pc.api.invocation.ActionInvocation invocation)
InvocationHandlerprepareRequest in class InvocationHandler<org.gatein.pc.api.invocation.ActionInvocation,PerformBlockingInteraction,BlockingInteractionResponse>requestPrecursor - the common extracted information for this requestinvocation - the portlet invocation from which we're trying to perform a WSRP callprotected org.gatein.pc.api.invocation.response.PortletInvocationResponse processResponse(BlockingInteractionResponse response, org.gatein.pc.api.invocation.ActionInvocation invocation, InvocationHandler.RequestPrecursor<org.gatein.pc.api.invocation.ActionInvocation> requestPrecursor) throws org.gatein.pc.api.PortletInvokerException
InvocationHandlerPortletInvocationResponse based on its type and on whether other WSRP components need to be informed of potential
changes from the producer.processResponse in class InvocationHandler<org.gatein.pc.api.invocation.ActionInvocation,PerformBlockingInteraction,BlockingInteractionResponse>response - the original WSRP responseinvocation - the PortletInvocation that triggered the WSRP callrequestPrecursor - the request precursor information we extracted before performing the requestorg.gatein.pc.api.PortletInvokerExceptionprotected List<Extension> getExtensionsFrom(BlockingInteractionResponse blockingInteractionResponse)
InvocationHandlergetExtensionsFrom in class InvocationHandler<org.gatein.pc.api.invocation.ActionInvocation,PerformBlockingInteraction,BlockingInteractionResponse>blockingInteractionResponse - the WSRP response to extract extensions fromCopyright © 2006-2014 GateIn. All Rights Reserved.