public abstract class MimeResponseHandler<Invocation extends org.gatein.pc.api.invocation.PortletInvocation,Request,Response,LocalMimeResponse extends MimeResponse> extends InvocationHandler<Invocation,Request,Response>
InvocationHandler.RequestPrecursor<Invocation extends org.gatein.pc.api.invocation.PortletInvocation>consumer, debug, log, trace| Modifier | Constructor and Description |
|---|---|
protected |
MimeResponseHandler(WSRPConsumerSPI consumer) |
| Modifier and Type | Method and Description |
|---|---|
protected org.gatein.pc.api.cache.CacheControl |
createCacheControl(LocalMimeResponse mimeResponse) |
protected org.gatein.pc.api.invocation.response.PortletInvocationResponse |
createContentResponse(LocalMimeResponse mimeResponse,
Invocation invocation,
org.gatein.pc.api.invocation.response.ResponseProperties properties,
String mimeType,
byte[] bytes,
String markup,
org.gatein.pc.api.cache.CacheControl cacheControl) |
protected abstract LocalMimeResponse |
getMimeResponseFrom(Response response) |
protected abstract SessionContext |
getSessionContextFrom(Response response) |
protected org.gatein.pc.api.invocation.response.PortletInvocationResponse |
processResponse(Response response,
Invocation invocation,
InvocationHandler.RequestPrecursor<Invocation> 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. |
getExtensionsFrom, getRuntimeContextFrom, handle, performRequest, performRequest, prepareRequest, processExtensions, unwrapWSRPErrorprotected MimeResponseHandler(WSRPConsumerSPI consumer)
protected abstract SessionContext getSessionContextFrom(Response response)
protected abstract LocalMimeResponse getMimeResponseFrom(Response response)
protected org.gatein.pc.api.invocation.response.PortletInvocationResponse processResponse(Response response, Invocation invocation, InvocationHandler.RequestPrecursor<Invocation> 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<Invocation extends org.gatein.pc.api.invocation.PortletInvocation,Request,Response>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 org.gatein.pc.api.invocation.response.PortletInvocationResponse createContentResponse(LocalMimeResponse mimeResponse, Invocation invocation, org.gatein.pc.api.invocation.response.ResponseProperties properties, String mimeType, byte[] bytes, String markup, org.gatein.pc.api.cache.CacheControl cacheControl)
protected org.gatein.pc.api.cache.CacheControl createCacheControl(LocalMimeResponse mimeResponse)
Copyright © 2006-2014 GateIn. All Rights Reserved.