| java.lang.Object org.apache.jetspeed.aggregator.impl.PortletRendererImpl
PortletRendererImpl | public class PortletRendererImpl implements PortletRenderer(Code) | | PortletRendererService
Jetspeed-2 Rendering service.
This service process all portlet rendering requests and interfaces with the
portlet container to generate the resulting markup
author: Rapha�l Luta author: David Sean Taylor author: Woonsan Ko version: $Id: PortletRendererImpl.java,v 1.30 2005/05/20 14:54:22 ate Exp $ |
Constructor Summary | |
public | PortletRendererImpl(PortletContainer container, PortletWindowAccessor windowAccessor, WorkerMonitor workMonitor, PortalStatistics statistics, DynamicTitleService addTitleService, PortletTrackingManager portletTracking, boolean checkSecurityConstraints, SecurityAccessController accessController, JetspeedCache portletContentCache, boolean overrideTitles) | public | PortletRendererImpl(PortletContainer container, PortletWindowAccessor windowAccessor, WorkerMonitor workMonitor, PortalStatistics statistics, DynamicTitleService addTitleService, PortletTrackingManager portletTracking, boolean checkSecurityConstraints, SecurityAccessController accessController, JetspeedCache portletContentCache) | public | PortletRendererImpl(PortletContainer container, PortletWindowAccessor windowAccessor, WorkerMonitor workMonitor, PortalStatistics statistics, DynamicTitleService addTitleService) | public | PortletRendererImpl(PortletContainer container, PortletWindowAccessor windowAccessor, WorkerMonitor workMonitor, PortalStatistics statistics) | public | PortletRendererImpl(PortletContainer container, PortletWindowAccessor windowAccessor, WorkerMonitor workMonitor) |
Method Summary | |
public void | addTitleToHeader(PortletWindow portletWindow, ContentFragment fragment, HttpServletRequest request, HttpServletResponse response, ContentDispatcherCtrl dispatcher, boolean isCacheTitle) | protected void | addToCache(PortletContent content) | protected RenderingJob | buildRenderingJob(PortletWindow portletWindow, ContentFragment fragment, RequestContext requestContext, boolean isParallel, PortletDefinitionComposite portletDefinition, PortletContent portletContent, boolean contentIsCached, long timeoutMetadata) | protected RenderingJob | buildRenderingJob(PortletWindow portletWindow, ContentFragment fragment, HttpServletRequest request, HttpServletResponse response, RequestContext requestContext, boolean isParallel, PortletDefinitionComposite portletDefinition, ContentDispatcherCtrl dispatcher, PortletContent portletContent, int expirationCache, boolean contentIsCached, long timeoutMetadata) | protected boolean | checkSecurityConstraint(PortletDefinitionComposite portlet, ContentFragment fragment) | public ContentDispatcherCtrl | createDispatcher(RequestContext request, ContentFragment fragment, int expirationCache) | public RenderingJob | createRenderingJob(ContentFragment fragment, RequestContext requestContext) Create a rendering job for the specified Page fragment. | public ContentDispatcher | getDispatcher(RequestContext request, boolean isParallel) | protected int | getExpirationCache(PortletDefinitionComposite portletDefinition) | public PortletTrackingManager | getPortletTrackingManager() | protected PortletWindow | getPortletWindow(ContentFragment fragment) | protected long | getTimeoutOnJob(PortletDefinitionComposite portletDefinition) | public void | notifyContentComplete(PortletContent content) | public void | processRenderingJob(RenderingJob job) Render the specified rendering job. | protected void | processRenderingJob(RenderingJob job, boolean parallelOnly) | public RenderingJob | render(ContentFragment fragment, RequestContext requestContext) Render the specified Page fragment. | public void | renderNow(ContentFragment fragment, RequestContext requestContext) Render the specified Page fragment. | public void | renderNow(ContentFragment fragment, HttpServletRequest request, HttpServletResponse response) Render the specified Page fragment. | protected boolean | retrieveCachedContent(RequestContext requestContext, ContentFragment fragment, PortletWindow portletWindow, int expiration, PortletDefinitionComposite portletDefinition) | protected void | setTimeoutOnJob(long timeoutMetadata, RenderingJob rJob) | public void | start() | public void | stop() | public void | waitForRenderingJobs(List renderingJobs) Wait for all rendering jobs in the collection to finish successfully or otherwise. |
OUT_OF_SERVICE_MESSAGE | final public static String OUT_OF_SERVICE_MESSAGE(Code) | | |
checkSecurityConstraints | protected boolean checkSecurityConstraints(Code) | | flag indicating whether to check jetspeed-portlet.xml security constraints
before rendering a portlet. If security check fails, do not display portlet content
|
container | protected PortletContainer container(Code) | | |
log | final protected static Log log(Code) | | |
overrideTitles | protected boolean overrideTitles(Code) | | OutOfService Cache
|
portletContentCache | protected JetspeedCache portletContentCache(Code) | | JSR 168 Portlet Content Cache
|
buildRenderingJob | protected RenderingJob buildRenderingJob(PortletWindow portletWindow, ContentFragment fragment, HttpServletRequest request, HttpServletResponse response, RequestContext requestContext, boolean isParallel, PortletDefinitionComposite portletDefinition, ContentDispatcherCtrl dispatcher, PortletContent portletContent, int expirationCache, boolean contentIsCached, long timeoutMetadata) throws PortletAccessDeniedException, FailedToRetrievePortletWindow, PortletEntityNotStoredException(Code) | | |
processRenderingJob | public void processRenderingJob(RenderingJob job)(Code) | | Render the specified rendering job.
The method returns before rendering is complete when the job is processed in parallel mode.
When it is not parallel mode, it returns after rendering is complete.
throws: FailedToRenderFragmentException - |
processRenderingJob | protected void processRenderingJob(RenderingJob job, boolean parallelOnly)(Code) | | |
render | public RenderingJob render(ContentFragment fragment, RequestContext requestContext)(Code) | | Render the specified Page fragment. The method returns before rendering
is complete, rendered content can be accessed through the Content Dispatcher
the asynchronous portlet rendering job to synchronize |
retrieveCachedContent | protected boolean retrieveCachedContent(RequestContext requestContext, ContentFragment fragment, PortletWindow portletWindow, int expiration, PortletDefinitionComposite portletDefinition) throws Exception(Code) | | Retrieve cached content, if content retrieved successfully return true, if no content found return false
Parameters: requestContext - Parameters: fragment - Parameters: portletWindow - true when content found, otherwise false |
setTimeoutOnJob | protected void setTimeoutOnJob(long timeoutMetadata, RenderingJob rJob)(Code) | | |
start | public void start()(Code) | | |
waitForRenderingJobs | public void waitForRenderingJobs(List renderingJobs)(Code) | | Wait for all rendering jobs in the collection to finish successfully or otherwise.
Parameters: renderingJobs - the Collection of rendering job objects to wait for. |
|
|