public class RenderHandler extends MimeResponseHandler<org.gatein.pc.api.invocation.RenderInvocation,GetMarkup,MarkupResponse,MarkupContext>
InvocationHandler.RequestPrecursor<Invocation extends org.gatein.pc.api.invocation.PortletInvocation>consumer, debug, log, trace| Constructor and Description |
|---|
RenderHandler(WSRPConsumerSPI consumer) |
| Modifier and Type | Method and Description |
|---|---|
protected org.gatein.pc.api.invocation.response.PortletInvocationResponse |
createContentResponse(MarkupContext markupContext,
org.gatein.pc.api.invocation.RenderInvocation invocation,
org.gatein.pc.api.invocation.response.ResponseProperties properties,
String mimeType,
byte[] bytes,
String markup,
org.gatein.pc.api.cache.CacheControl cacheControl) |
protected List<Extension> |
getExtensionsFrom(MarkupResponse markupResponse)
Extracts extensions from the response.
|
protected MarkupContext |
getMimeResponseFrom(MarkupResponse markupResponse) |
protected RuntimeContext |
getRuntimeContextFrom(GetMarkup request)
Extracts the RuntimeContext from the specific WSRP request.
|
protected SessionContext |
getSessionContextFrom(MarkupResponse response) |
protected MarkupResponse |
performRequest(GetMarkup request)
Performs the actual specific WSRP call for the specified request.
|
protected GetMarkup |
prepareRequest(InvocationHandler.RequestPrecursor<org.gatein.pc.api.invocation.RenderInvocation> requestPrecursor,
org.gatein.pc.api.invocation.RenderInvocation invocation)
Created and further prepares the specific requests based on common extracted information from the specified RequestPrecursor and the originating portlet invocation.
|
createCacheControl, processResponsehandle, performRequest, processExtensions, unwrapWSRPErrorpublic RenderHandler(WSRPConsumerSPI consumer)
protected SessionContext getSessionContextFrom(MarkupResponse response)
getSessionContextFrom in class MimeResponseHandler<org.gatein.pc.api.invocation.RenderInvocation,GetMarkup,MarkupResponse,MarkupContext>protected MarkupContext getMimeResponseFrom(MarkupResponse markupResponse)
getMimeResponseFrom in class MimeResponseHandler<org.gatein.pc.api.invocation.RenderInvocation,GetMarkup,MarkupResponse,MarkupContext>protected org.gatein.pc.api.invocation.response.PortletInvocationResponse createContentResponse(MarkupContext markupContext, org.gatein.pc.api.invocation.RenderInvocation invocation, org.gatein.pc.api.invocation.response.ResponseProperties properties, String mimeType, byte[] bytes, String markup, org.gatein.pc.api.cache.CacheControl cacheControl)
createContentResponse in class MimeResponseHandler<org.gatein.pc.api.invocation.RenderInvocation,GetMarkup,MarkupResponse,MarkupContext>protected GetMarkup prepareRequest(InvocationHandler.RequestPrecursor<org.gatein.pc.api.invocation.RenderInvocation> requestPrecursor, org.gatein.pc.api.invocation.RenderInvocation invocation)
InvocationHandlerprepareRequest in class InvocationHandler<org.gatein.pc.api.invocation.RenderInvocation,GetMarkup,MarkupResponse>requestPrecursor - the common extracted information for this requestinvocation - the portlet invocation from which we're trying to perform a WSRP callprotected List<Extension> getExtensionsFrom(MarkupResponse markupResponse)
InvocationHandlergetExtensionsFrom in class InvocationHandler<org.gatein.pc.api.invocation.RenderInvocation,GetMarkup,MarkupResponse>markupResponse - the WSRP response to extract extensions fromprotected RuntimeContext getRuntimeContextFrom(GetMarkup request)
InvocationHandlergetRuntimeContextFrom in class InvocationHandler<org.gatein.pc.api.invocation.RenderInvocation,GetMarkup,MarkupResponse>request - the request to extract a RuntimeContext fromprotected MarkupResponse performRequest(GetMarkup request) throws Exception
InvocationHandlerperformRequest in class InvocationHandler<org.gatein.pc.api.invocation.RenderInvocation,GetMarkup,MarkupResponse>request - the WSRP request to performExceptionCopyright © 2006-2014 GateIn. All Rights Reserved.