|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jetspeed.aggregator.impl.PortletRendererImpl
public class PortletRendererImpl
This service process all portlet rendering requests and interfaces with the portlet container to generate the resulting markup
Field Summary | |
---|---|
protected org.apache.jetspeed.security.SecurityAccessController |
accessController
For security constraint checks |
protected DynamicTitleService |
addTitleService
|
protected boolean |
checkSecurityConstraints
flag indicating whether to check jetspeed-portlet.xml security constraints before rendering a portlet. |
protected org.apache.pluto.PortletContainer |
container
|
protected static org.apache.commons.logging.Log |
log
|
static String |
OUT_OF_SERVICE_MESSAGE
|
protected boolean |
overrideTitles
OutOfService Cache |
protected org.apache.jetspeed.cache.JetspeedCache |
portletContentCache
JSR 168 Portlet Content Cache |
protected org.apache.jetspeed.aggregator.PortletTrackingManager |
portletTracking
|
protected org.apache.jetspeed.statistics.PortalStatistics |
statistics
|
protected org.apache.jetspeed.container.window.PortletWindowAccessor |
windowAccessor
|
protected org.apache.jetspeed.aggregator.WorkerMonitor |
workMonitor
|
Constructor Summary | |
---|---|
PortletRendererImpl(org.apache.pluto.PortletContainer container,
org.apache.jetspeed.container.window.PortletWindowAccessor windowAccessor,
org.apache.jetspeed.aggregator.WorkerMonitor workMonitor)
|
|
PortletRendererImpl(org.apache.pluto.PortletContainer container,
org.apache.jetspeed.container.window.PortletWindowAccessor windowAccessor,
org.apache.jetspeed.aggregator.WorkerMonitor workMonitor,
org.apache.jetspeed.statistics.PortalStatistics statistics)
|
|
PortletRendererImpl(org.apache.pluto.PortletContainer container,
org.apache.jetspeed.container.window.PortletWindowAccessor windowAccessor,
org.apache.jetspeed.aggregator.WorkerMonitor workMonitor,
org.apache.jetspeed.statistics.PortalStatistics statistics,
DynamicTitleService addTitleService)
|
|
PortletRendererImpl(org.apache.pluto.PortletContainer container,
org.apache.jetspeed.container.window.PortletWindowAccessor windowAccessor,
org.apache.jetspeed.aggregator.WorkerMonitor workMonitor,
org.apache.jetspeed.statistics.PortalStatistics statistics,
DynamicTitleService addTitleService,
org.apache.jetspeed.aggregator.PortletTrackingManager portletTracking,
boolean checkSecurityConstraints,
org.apache.jetspeed.security.SecurityAccessController accessController,
org.apache.jetspeed.cache.JetspeedCache portletContentCache)
|
|
PortletRendererImpl(org.apache.pluto.PortletContainer container,
org.apache.jetspeed.container.window.PortletWindowAccessor windowAccessor,
org.apache.jetspeed.aggregator.WorkerMonitor workMonitor,
org.apache.jetspeed.statistics.PortalStatistics statistics,
DynamicTitleService addTitleService,
org.apache.jetspeed.aggregator.PortletTrackingManager portletTracking,
boolean checkSecurityConstraints,
org.apache.jetspeed.security.SecurityAccessController accessController,
org.apache.jetspeed.cache.JetspeedCache portletContentCache,
boolean overrideTitles)
|
Method Summary | |
---|---|
void |
addTitleToHeader(org.apache.pluto.om.window.PortletWindow portletWindow,
org.apache.jetspeed.om.page.ContentFragment fragment,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.apache.jetspeed.aggregator.ContentDispatcherCtrl dispatcher,
boolean isCacheTitle)
|
protected void |
addToCache(org.apache.jetspeed.aggregator.PortletContent content)
|
protected org.apache.jetspeed.aggregator.RenderingJob |
buildRenderingJob(org.apache.pluto.om.window.PortletWindow portletWindow,
org.apache.jetspeed.om.page.ContentFragment fragment,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.apache.jetspeed.request.RequestContext requestContext,
boolean isParallel,
org.apache.jetspeed.om.common.portlet.PortletDefinitionComposite portletDefinition,
org.apache.jetspeed.aggregator.ContentDispatcherCtrl dispatcher,
org.apache.jetspeed.aggregator.PortletContent portletContent,
int expirationCache,
boolean contentIsCached,
long timeoutMetadata)
|
protected org.apache.jetspeed.aggregator.RenderingJob |
buildRenderingJob(org.apache.pluto.om.window.PortletWindow portletWindow,
org.apache.jetspeed.om.page.ContentFragment fragment,
org.apache.jetspeed.request.RequestContext requestContext,
boolean isParallel,
org.apache.jetspeed.om.common.portlet.PortletDefinitionComposite portletDefinition,
org.apache.jetspeed.aggregator.PortletContent portletContent,
boolean contentIsCached,
long timeoutMetadata)
|
protected boolean |
checkSecurityConstraint(org.apache.jetspeed.om.common.portlet.PortletDefinitionComposite portlet,
org.apache.jetspeed.om.page.ContentFragment fragment)
|
org.apache.jetspeed.aggregator.ContentDispatcherCtrl |
createDispatcher(org.apache.jetspeed.request.RequestContext request,
org.apache.jetspeed.om.page.ContentFragment fragment,
int expirationCache)
|
org.apache.jetspeed.aggregator.RenderingJob |
createRenderingJob(org.apache.jetspeed.om.page.ContentFragment fragment,
org.apache.jetspeed.request.RequestContext requestContext)
Create a rendering job for the specified Page fragment. |
org.apache.jetspeed.aggregator.ContentDispatcher |
getDispatcher(org.apache.jetspeed.request.RequestContext request,
boolean isParallel)
Retrieve the ContentDispatcher for the specified request |
protected int |
getExpirationCache(org.apache.jetspeed.om.common.portlet.PortletDefinitionComposite portletDefinition)
|
org.apache.jetspeed.aggregator.PortletTrackingManager |
getPortletTrackingManager()
|
protected org.apache.pluto.om.window.PortletWindow |
getPortletWindow(org.apache.jetspeed.om.page.ContentFragment fragment)
|
protected long |
getTimeoutOnJob(org.apache.jetspeed.om.common.portlet.PortletDefinitionComposite portletDefinition)
|
void |
notifyContentComplete(org.apache.jetspeed.aggregator.PortletContent content)
|
void |
processRenderingJob(org.apache.jetspeed.aggregator.RenderingJob job)
Render the specified rendering job. |
protected void |
processRenderingJob(org.apache.jetspeed.aggregator.RenderingJob job,
boolean parallelOnly)
|
org.apache.jetspeed.aggregator.RenderingJob |
render(org.apache.jetspeed.om.page.ContentFragment fragment,
org.apache.jetspeed.request.RequestContext requestContext)
Render the specified Page fragment. |
void |
renderNow(org.apache.jetspeed.om.page.ContentFragment fragment,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Render the specified Page fragment. |
void |
renderNow(org.apache.jetspeed.om.page.ContentFragment fragment,
org.apache.jetspeed.request.RequestContext requestContext)
Render the specified Page fragment. |
protected boolean |
retrieveCachedContent(org.apache.jetspeed.request.RequestContext requestContext,
org.apache.jetspeed.om.page.ContentFragment fragment,
org.apache.pluto.om.window.PortletWindow portletWindow,
int expiration,
org.apache.jetspeed.om.common.portlet.PortletDefinitionComposite portletDefinition)
Retrieve cached content, if content retrieved successfully return true, if no content found return false |
protected void |
setTimeoutOnJob(long timeoutMetadata,
org.apache.jetspeed.aggregator.RenderingJob rJob)
|
void |
start()
|
void |
stop()
|
void |
waitForRenderingJobs(List renderingJobs)
Wait for all rendering jobs in the collection to finish successfully or otherwise. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.commons.logging.Log log
protected org.apache.jetspeed.aggregator.WorkerMonitor workMonitor
protected org.apache.pluto.PortletContainer container
protected org.apache.jetspeed.container.window.PortletWindowAccessor windowAccessor
protected org.apache.jetspeed.statistics.PortalStatistics statistics
protected DynamicTitleService addTitleService
protected org.apache.jetspeed.aggregator.PortletTrackingManager portletTracking
protected boolean checkSecurityConstraints
protected org.apache.jetspeed.security.SecurityAccessController accessController
protected org.apache.jetspeed.cache.JetspeedCache portletContentCache
protected boolean overrideTitles
public static final String OUT_OF_SERVICE_MESSAGE
Constructor Detail |
---|
public PortletRendererImpl(org.apache.pluto.PortletContainer container, org.apache.jetspeed.container.window.PortletWindowAccessor windowAccessor, org.apache.jetspeed.aggregator.WorkerMonitor workMonitor, org.apache.jetspeed.statistics.PortalStatistics statistics, DynamicTitleService addTitleService, org.apache.jetspeed.aggregator.PortletTrackingManager portletTracking, boolean checkSecurityConstraints, org.apache.jetspeed.security.SecurityAccessController accessController, org.apache.jetspeed.cache.JetspeedCache portletContentCache, boolean overrideTitles)
public PortletRendererImpl(org.apache.pluto.PortletContainer container, org.apache.jetspeed.container.window.PortletWindowAccessor windowAccessor, org.apache.jetspeed.aggregator.WorkerMonitor workMonitor, org.apache.jetspeed.statistics.PortalStatistics statistics, DynamicTitleService addTitleService, org.apache.jetspeed.aggregator.PortletTrackingManager portletTracking, boolean checkSecurityConstraints, org.apache.jetspeed.security.SecurityAccessController accessController, org.apache.jetspeed.cache.JetspeedCache portletContentCache)
public PortletRendererImpl(org.apache.pluto.PortletContainer container, org.apache.jetspeed.container.window.PortletWindowAccessor windowAccessor, org.apache.jetspeed.aggregator.WorkerMonitor workMonitor, org.apache.jetspeed.statistics.PortalStatistics statistics, DynamicTitleService addTitleService)
public PortletRendererImpl(org.apache.pluto.PortletContainer container, org.apache.jetspeed.container.window.PortletWindowAccessor windowAccessor, org.apache.jetspeed.aggregator.WorkerMonitor workMonitor, org.apache.jetspeed.statistics.PortalStatistics statistics)
public PortletRendererImpl(org.apache.pluto.PortletContainer container, org.apache.jetspeed.container.window.PortletWindowAccessor windowAccessor, org.apache.jetspeed.aggregator.WorkerMonitor workMonitor)
Method Detail |
---|
public void start()
public void stop()
public void renderNow(org.apache.jetspeed.om.page.ContentFragment fragment, org.apache.jetspeed.request.RequestContext requestContext)
renderNow
in interface org.apache.jetspeed.aggregator.PortletRenderer
org.apache.jetspeed.aggregator.FailedToRenderFragmentException
org.apache.jetspeed.container.window.FailedToRetrievePortletWindow
org.apache.jetspeed.aggregator.UnknownPortletDefinitionException
public void renderNow(org.apache.jetspeed.om.page.ContentFragment fragment, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
renderNow
in interface org.apache.jetspeed.aggregator.PortletRenderer
org.apache.jetspeed.aggregator.FailedToRenderFragmentException
org.apache.jetspeed.container.window.FailedToRetrievePortletWindow
org.apache.jetspeed.aggregator.UnknownPortletDefinitionException
org.apache.jetspeed.aggregator.PortletAccessDeniedException
protected int getExpirationCache(org.apache.jetspeed.om.common.portlet.PortletDefinitionComposite portletDefinition)
public org.apache.jetspeed.aggregator.RenderingJob render(org.apache.jetspeed.om.page.ContentFragment fragment, org.apache.jetspeed.request.RequestContext requestContext)
render
in interface org.apache.jetspeed.aggregator.PortletRenderer
public org.apache.jetspeed.aggregator.RenderingJob createRenderingJob(org.apache.jetspeed.om.page.ContentFragment fragment, org.apache.jetspeed.request.RequestContext requestContext)
createRenderingJob
in interface org.apache.jetspeed.aggregator.PortletRenderer
org.apache.jetspeed.container.window.FailedToRetrievePortletWindow
org.apache.jetspeed.aggregator.UnknownPortletDefinitionException
org.apache.jetspeed.aggregator.PortletAccessDeniedException
public void processRenderingJob(org.apache.jetspeed.aggregator.RenderingJob job)
processRenderingJob
in interface org.apache.jetspeed.aggregator.PortletRenderer
org.apache.jetspeed.aggregator.FailedToRenderFragmentException
protected void processRenderingJob(org.apache.jetspeed.aggregator.RenderingJob job, boolean parallelOnly)
public void waitForRenderingJobs(List renderingJobs)
waitForRenderingJobs
in interface org.apache.jetspeed.aggregator.PortletRenderer
renderingJobs
- the Collection of rendering job objects to wait for.protected boolean retrieveCachedContent(org.apache.jetspeed.request.RequestContext requestContext, org.apache.jetspeed.om.page.ContentFragment fragment, org.apache.pluto.om.window.PortletWindow portletWindow, int expiration, org.apache.jetspeed.om.common.portlet.PortletDefinitionComposite portletDefinition) throws Exception
requestContext
- fragment
- portletWindow
-
Exception
public org.apache.jetspeed.aggregator.ContentDispatcherCtrl createDispatcher(org.apache.jetspeed.request.RequestContext request, org.apache.jetspeed.om.page.ContentFragment fragment, int expirationCache)
public org.apache.jetspeed.aggregator.ContentDispatcher getDispatcher(org.apache.jetspeed.request.RequestContext request, boolean isParallel)
getDispatcher
in interface org.apache.jetspeed.aggregator.PortletRenderer
protected org.apache.pluto.om.window.PortletWindow getPortletWindow(org.apache.jetspeed.om.page.ContentFragment fragment) throws org.apache.jetspeed.container.window.FailedToRetrievePortletWindow, org.apache.jetspeed.components.portletentity.PortletEntityNotStoredException
org.apache.jetspeed.container.window.FailedToRetrievePortletWindow
org.apache.jetspeed.components.portletentity.PortletEntityNotStoredException
protected org.apache.jetspeed.aggregator.RenderingJob buildRenderingJob(org.apache.pluto.om.window.PortletWindow portletWindow, org.apache.jetspeed.om.page.ContentFragment fragment, org.apache.jetspeed.request.RequestContext requestContext, boolean isParallel, org.apache.jetspeed.om.common.portlet.PortletDefinitionComposite portletDefinition, org.apache.jetspeed.aggregator.PortletContent portletContent, boolean contentIsCached, long timeoutMetadata) throws org.apache.jetspeed.aggregator.PortletAccessDeniedException, org.apache.jetspeed.container.window.FailedToRetrievePortletWindow, org.apache.jetspeed.components.portletentity.PortletEntityNotStoredException
org.apache.jetspeed.aggregator.PortletAccessDeniedException
org.apache.jetspeed.container.window.FailedToRetrievePortletWindow
org.apache.jetspeed.components.portletentity.PortletEntityNotStoredException
protected org.apache.jetspeed.aggregator.RenderingJob buildRenderingJob(org.apache.pluto.om.window.PortletWindow portletWindow, org.apache.jetspeed.om.page.ContentFragment fragment, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.apache.jetspeed.request.RequestContext requestContext, boolean isParallel, org.apache.jetspeed.om.common.portlet.PortletDefinitionComposite portletDefinition, org.apache.jetspeed.aggregator.ContentDispatcherCtrl dispatcher, org.apache.jetspeed.aggregator.PortletContent portletContent, int expirationCache, boolean contentIsCached, long timeoutMetadata) throws org.apache.jetspeed.aggregator.PortletAccessDeniedException, org.apache.jetspeed.container.window.FailedToRetrievePortletWindow, org.apache.jetspeed.components.portletentity.PortletEntityNotStoredException
org.apache.jetspeed.aggregator.PortletAccessDeniedException
org.apache.jetspeed.container.window.FailedToRetrievePortletWindow
org.apache.jetspeed.components.portletentity.PortletEntityNotStoredException
protected long getTimeoutOnJob(org.apache.jetspeed.om.common.portlet.PortletDefinitionComposite portletDefinition)
protected void setTimeoutOnJob(long timeoutMetadata, org.apache.jetspeed.aggregator.RenderingJob rJob)
public void addTitleToHeader(org.apache.pluto.om.window.PortletWindow portletWindow, org.apache.jetspeed.om.page.ContentFragment fragment, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.apache.jetspeed.aggregator.ContentDispatcherCtrl dispatcher, boolean isCacheTitle)
addTitleToHeader
in interface org.apache.jetspeed.aggregator.PortletRenderer
protected boolean checkSecurityConstraint(org.apache.jetspeed.om.common.portlet.PortletDefinitionComposite portlet, org.apache.jetspeed.om.page.ContentFragment fragment)
protected void addToCache(org.apache.jetspeed.aggregator.PortletContent content)
public void notifyContentComplete(org.apache.jetspeed.aggregator.PortletContent content)
notifyContentComplete
in interface org.apache.jetspeed.aggregator.PortletRenderer
public org.apache.jetspeed.aggregator.PortletTrackingManager getPortletTrackingManager()
getPortletTrackingManager
in interface org.apache.jetspeed.aggregator.PortletRenderer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |