public class EventHandler extends NavigationalStateUpdatingHandler<org.gatein.pc.api.invocation.EventInvocation,HandleEvents,HandleEventsResponse>
InvocationHandler.RequestPrecursor<Invocation extends org.gatein.pc.api.invocation.PortletInvocation>consumer, debug, log, trace| Constructor and Description |
|---|
EventHandler(WSRPConsumerImpl consumer) |
| Modifier and Type | Method and Description |
|---|---|
protected List<Extension> |
getExtensionsFrom(HandleEventsResponse handleEventsResponse)
Extracts extensions from the response.
|
protected RuntimeContext |
getRuntimeContextFrom(HandleEvents request)
Extracts the RuntimeContext from the specific WSRP request.
|
protected HandleEventsResponse |
performRequest(HandleEvents request)
Performs the actual specific WSRP call for the specified request.
|
protected HandleEvents |
prepareRequest(InvocationHandler.RequestPrecursor<org.gatein.pc.api.invocation.EventInvocation> requestPrecursor,
org.gatein.pc.api.invocation.EventInvocation 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(HandleEventsResponse response,
org.gatein.pc.api.invocation.EventInvocation invocation,
InvocationHandler.RequestPrecursor<org.gatein.pc.api.invocation.EventInvocation> 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 EventHandler(WSRPConsumerImpl consumer)
protected RuntimeContext getRuntimeContextFrom(HandleEvents request)
InvocationHandlergetRuntimeContextFrom in class InvocationHandler<org.gatein.pc.api.invocation.EventInvocation,HandleEvents,HandleEventsResponse>request - the request to extract a RuntimeContext fromprotected HandleEventsResponse performRequest(HandleEvents request) throws Exception
InvocationHandlerperformRequest in class InvocationHandler<org.gatein.pc.api.invocation.EventInvocation,HandleEvents,HandleEventsResponse>request - the WSRP request to performExceptionprotected HandleEvents prepareRequest(InvocationHandler.RequestPrecursor<org.gatein.pc.api.invocation.EventInvocation> requestPrecursor, org.gatein.pc.api.invocation.EventInvocation invocation)
InvocationHandlerprepareRequest in class InvocationHandler<org.gatein.pc.api.invocation.EventInvocation,HandleEvents,HandleEventsResponse>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(HandleEventsResponse response, org.gatein.pc.api.invocation.EventInvocation invocation, InvocationHandler.RequestPrecursor<org.gatein.pc.api.invocation.EventInvocation> 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.EventInvocation,HandleEvents,HandleEventsResponse>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(HandleEventsResponse handleEventsResponse)
InvocationHandlergetExtensionsFrom in class InvocationHandler<org.gatein.pc.api.invocation.EventInvocation,HandleEvents,HandleEventsResponse>handleEventsResponse - the WSRP response to extract extensions fromCopyright © 2006-2014 GateIn. All Rights Reserved.