oracle.portal.provider.v1
Interface ManagedRenderer

All Known Implementing Classes:
BaseManagedRenderer

public interface ManagedRenderer

A ManagedRenderer is a controller used, in conjunction with RenderManager, to construct a correctly ordered response to a PortletRenderRequest. Such a response must do any protocol specific preparation before rendering the portlet's contents.

Unless rendering for the default page, a ManagedRenderer's response corresponds to a single render mode.


Method Summary
 java.lang.String getContentType()
          Gets the MIME type to be used as the content type for this renderer's pages.
 boolean prepareResponse(PortletRenderRequest pr)
          Performs any protocol specific preparation that is needed before the render modes's contents are rendered.
 void renderBody(PortletRenderRequest pr)
          Performs the steps necessary to render the portlet's contents for this specific PortletRenderRequest.
 

Method Detail

getContentType

public java.lang.String getContentType()
Gets the MIME type to be used as the content type for this renderer's pages.
Returns:
MIME type to be used as the content type for this renderer's pages.

prepareResponse

public boolean prepareResponse(PortletRenderRequest pr)
                        throws PortletException
Performs any protocol specific preparation that is needed before the render modes's contents are rendered.
Parameters:
pr - a PortletRenderRequest
Returns:
boolean flag indicating whether or not to render the portlet's contents (e.g. is the cached version still valid)

renderBody

public void renderBody(PortletRenderRequest pr)
                throws PortletException
Performs the steps necessary to render the portlet's contents for this specific PortletRenderRequest. If this ManagedRenderer is rendering for the default page, this method should be able to render contents for all remaining supported modes.
Parameters:
pr - a PortletRenderRequest