public interface PortletRenderer
PortletAggregator to
render the content of one portlet. The render works directly with ContentFragments, which are wrappers
around portlet instances.| Modifier and Type | Method and Description |
|---|---|
RenderingJob |
createRenderingJob(ContentFragment fragment,
RequestContext request)
Create a rendering job for the specified content fragment.
|
PortletTrackingManager |
getPortletTrackingManager()
Returns an instance of the PortletTrackingManager which is monitoring this rendering request.
|
void |
notifyContentComplete(RequestContext context,
PortletWindow window)
Notification callback from job to this renderer informing that the content rendering has completed.
|
void |
processRenderingJob(RenderingJob job)
Processes the actual rendering of the specified rendering job, dispatching to the portlet container to process
the rendering of a portlet instance.
|
void |
renderNow(ContentFragment fragment,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated.
|
void |
renderNow(ContentFragment fragment,
RequestContext request)
Renders the specified fragment immediately.
|
void |
renderNow(ContentFragment fragment,
RequestContext request,
boolean spawned)
Render the specified fragment immediately.
|
void |
waitForRenderingJobs(List<RenderingJob> renderingJobs)
Waits for all rendering jobs in the list of jobs to finish successfully or otherwise.
|
void renderNow(ContentFragment fragment, RequestContext request)
fragment - represents the content and runtime preferences about the portlet instance to be renderedrequest - the request context holding runtime request parameters to be normalizedvoid renderNow(ContentFragment fragment, RequestContext request, boolean spawned)
fragment - represents the content and runtime preferences about the portlet instance to be renderedrequest - the request context holding runtime request parameters to be normalizedspawned - true if this rendering to occur in a separate threadvoid renderNow(ContentFragment fragment, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
fragment - represents the content and runtime preferences about the portlet instance to be renderedrequest - the servlet requestresponse - the servlet responseRenderingJob createRenderingJob(ContentFragment fragment, RequestContext request) throws PortletAccessDeniedException
processRenderingJob(RenderingJob job) method.fragment - represents the content and runtime preferences about the portlet instance to be renderedrequest - the request context holding runtime request parameters to be normalizedprocessRenderingJob(RenderingJob job) methodPortletAccessDeniedExceptionvoid processRenderingJob(RenderingJob job)
job - the rendering job to processvoid waitForRenderingJobs(List<RenderingJob> renderingJobs)
renderingJobs - the list of rendering job objects to wait for.void notifyContentComplete(RequestContext context, PortletWindow window)
context - the request context holding runtime request parameters to be normalizedwindow - the portlet window associated with the jobPortletTrackingManager getPortletTrackingManager()
Copyright © 1999–2016 The Apache Software Foundation. All rights reserved.