|
OracleAS PDK for Java 9.0.4.0.2 | |||||||||
| 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
|
+--oracle.portal.provider.v2.render.http.StrutsRenderer
This class is used as an adapter to a Struts servlet application.
Requests to this renderer contain the Struts action to be called as a
parameter. The only time that this is not the case is the first time the
portlet is called. In this case the action set using
setDefaultAction is used instead.
| Field Summary | |
static java.lang.String |
STRUTS_ACTION
The Struts action parameter name |
| Constructor Summary | |
StrutsRenderer()
This constructor is called by a RenderManager object. |
|
| Method Summary | |
java.lang.String |
getDefaultAction()
Returns the default Struts servlet action. |
java.lang.String |
getRequestResourcePath(PortletRenderRequest prr)
Gets a path pointing to the resource to be rendered, in this case it is a Struts action. |
void |
setDefaultAction(java.lang.String action)
Sets the default Struts servlet action to be used if none is present in the portlet request. |
void |
validate(java.lang.String context,
ValidationError errors)
Called by the framework when the provider definition is loaded or refreshed in response to a Portal message or when the test page is called. |
| Methods inherited from class oracle.portal.provider.v2.render.http.AbstractResourceRenderer |
getCharSet, getContext, prepareResponse, renderBody, setCharSet |
| Methods inherited from class oracle.portal.provider.v2.render.http.BaseManagedRenderer |
addParameter, getContentType, getGeneratesESI, postInitialize, preInitialize, setContentType, setGeneratesESI, setGeneratesESI, setPageExpires, setPageExpires, setUseInvalidationCaching, setUseInvalidationCaching |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String STRUTS_ACTION
| Constructor Detail |
public StrutsRenderer()
RenderManager object. Pre-
initialisation checks are carried out by the framework in
BaseManagedRenderer.preInitialize(java.lang.Object).
| Method Detail |
public void validate(java.lang.String context,
ValidationError errors)
validate in interface Validateablevalidate in class BaseManagedRenderercontext - The context of the calling instance.errors - The current list of errors.public void setDefaultAction(java.lang.String action)
Most likely to be called when the provider definition is loaded.
action - the default action name. The code uses an action name
starting with the '/' character but will add one if none is
present.public java.lang.String getDefaultAction()
public java.lang.String getRequestResourcePath(PortletRenderRequest prr)
throws PortletException
The first time the renderer is called the default action will be returned. Subsequent calls should contain the Struts action as a parameter.
getRequestResourcePath in class AbstractResourceRendererprr - the portlet request
PortletException
|
OracleAS PDK for Java 9.0.4.0.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||