|
Oracle Fusion Middleware Java API Reference for Oracle PDK Java 11g Release 1 (11.1.1) E10691-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.portal.provider.v2.render.ManagedRenderer oracle.portal.provider.v2.render.http.BaseManagedRenderer oracle.portal.provider.v2.render.http.AbstractResourceRenderer
public abstract class AbstractResourceRenderer
This is the base class for renderers that use a request dispatcher to render content.
Constructor Summary | |
---|---|
AbstractResourceRenderer()
Null Constructor. |
Method Summary | |
---|---|
java.lang.String |
getCharSet()
Gets the character set to be used for rendering resource content. |
java.lang.String |
getContext()
Gets the context root of the javax.servlet.ServletContext
containing the resource. |
abstract java.lang.String |
getRequestResourcePath(PortletRenderRequest prr)
Override this method to return a path to the resource to be rendered. |
boolean |
prepareResponse(PortletRenderRequest pr)
In addition to setting default http headers for the response (see BaseManagedRenderer ), this method ensures that the
HttpServletResponse is wrapped in the correct manner. |
void |
renderBody(PortletRenderRequest pr)
Render the specified page's contents from the required resource. |
void |
setCharSet(java.lang.String charSet)
Sets the character set to be used for rendering resource content. |
Methods inherited from class oracle.portal.provider.v2.render.http.BaseManagedRenderer |
---|
addParameter, getContentType, getGeneratesESI, postInitialize, preInitialize, setContentType, setGeneratesESI, setGeneratesESI, setPageExpires, setPageExpires, setUseInvalidationCaching, setUseInvalidationCaching, validate |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractResourceRenderer()
BaseManagedRenderer.preInitialize(Object)
method should be called after creating an object with this constructor
and the BaseManagedRenderer.postInitialize()
method should be
called after setting up page properties with the various accessor
methods. Normally taken care of by
DefaultNodeHandler
takes care of these
details.
Method Detail |
---|
public java.lang.String getContext()
javax.servlet.ServletContext
containing the resource. If the resource is located in the same context
as the current provider, this method returns
null
.
null
if the context is the
same as the current provider.public void setCharSet(java.lang.String charSet)
public java.lang.String getCharSet()
public boolean prepareResponse(PortletRenderRequest pr) throws PortletException
BaseManagedRenderer
), this method ensures that the
HttpServletResponse
is wrapped in the correct manner.
prepareResponse
in class BaseManagedRenderer
pr
- a PortletRenderRequest
.
PortletException
public abstract java.lang.String getRequestResourcePath(PortletRenderRequest prr) throws PortletException
PortletException
public void renderBody(PortletRenderRequest pr) throws PortletException
javax.servlet.RequestDispatcher
for. Examples include JSPs,
servlets and static HTML files.
renderBody
in class ManagedRenderer
pr
- a PortletRenderRequest
.
PortletException
|
Oracle Fusion Middleware Java API Reference for Oracle PDK Java 11g Release 1 (11.1.1) E10691-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |