|
The PDK Java API is part of the Portal Developer Kit on Portal Studio | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | 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.ResourceRenderer
When maintained by a RenderManager,
a ResourceRenderer renders a single page's contents from
resource known to the servlet container. Examples of such resources include
JSPs, servlets and static HTML files. Any resource can be used as long as
the servlet container can return a valid
javax.servlet.RequestDispatcher for it. The resource can be
located in the same servlet context as the current provider or a different
one.
| Constructor Summary | |
ResourceRenderer()
Null Constructor. |
|
ResourceRenderer(RenderManager parent,
java.lang.String path)
Creates and initializes a ResourceRenderer owned by the
given RenderManager, to render from the resource at the
given path. |
|
| Method Summary | |
java.lang.String |
getContext()
Gets the context root of the javax.servlet.ServletContext
containing the resource. |
java.lang.String |
getResourcePath()
Gets the path to the resource used for rendering. |
void |
postInitialize()
Performs the extra steps required to initialize and validate a ResourceRenderer object once its properties have been set
with the appropriate accessor methods. |
boolean |
prepareResponse(PortletRenderRequest pr)
In addition to setting default http headers for the response (see BaseManagedRenderer), ResourceRenderer ensures 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. |
void |
setContext(java.lang.String context)
Sets the context root of the javax.servlet.ServletContext
containing the resource. |
void |
setResourcePath(java.lang.String path)
Sets the path of the resource used for rendering. |
void |
validate(java.lang.String context,
ValidationError errors)
Validates the internal state of this ResourceRenderer
instance. |
| Methods inherited from class oracle.portal.provider.v2.render.http.BaseManagedRenderer |
addParameter, getContentType, getGeneratesESI, preInitialize, setContentType, setGeneratesESI, setGeneratesESI, setPageExpires, setPageExpires, setUseInvalidationCaching, setUseInvalidationCaching |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ResourceRenderer()
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 a DefaultNodeHandler takes care of these
details.
public ResourceRenderer(RenderManager parent,
java.lang.String path)
throws PortletException
ResourceRenderer owned by the
given RenderManager, to render from the resource at the
given path.RenderManager - that owns this pagepath - the path to the resource.PortletException - if an error occurs while initializing the
object| 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 setContext(java.lang.String context)
javax.servlet.ServletContext
containing the resource. This should only be set if the resource is
located in a different servelet context than the current
provider.context - context root known to the server.public java.lang.String getResourcePath()
public void setResourcePath(java.lang.String path)
path - resource location.public void setCharSet(java.lang.String charSet)
public void postInitialize()
throws NodeHandlerException
ResourceRenderer object once its properties have been set
with the appropriate accessor methods. A ResourceRenderer
object must be supplied with a non null resource path.postInitialize in class BaseManagedRendererNodeHandlerException - if a resource path has not been
specified.
public boolean prepareResponse(PortletRenderRequest pr)
throws PortletException
BaseManagedRenderer), ResourceRenderer ensures the
HttpServletResponse is wrapped in the correct manner.prepareResponse in class BaseManagedRendererpr - a PortletRenderRequest.
public void renderBody(PortletRenderRequest pr)
throws PortletException
javax.servlet.RequestDispatcher for. Examples include JSPs,
servlets and static HTML files.renderBody in class ManagedRendererpr - a PortletRenderRequest.
public void validate(java.lang.String context,
ValidationError errors)
ResourceRenderer
instance. Errors found are reported using the supplied ValidationError instance.validate in class BaseManagedRenderercontext - The context of the calling instance.errors - The current list of errors.
|
The PDK Java API is part of the Portal Developer Kit on Portal Studio | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||