|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectGenericPortlet
com.openmarket.Satellite.portlet.BasePortlet
com.openmarket.Satellite.portlet.Satellite
public class Satellite
Base class for portlets that access Content Server through Satellite Server.
It operates by passing parameters destined for this portlet to the Satellite Server
application which will either retrieve the content from cache or fetch it from
Content Server.
This portlet does not have direct access to Content Server or any of its functionality.
To access Content Server functionality, write pages and elements using standard practices.
If the content needs to be dynamic, uncached pages or pagelets are suitable and supported.
Cached pages and pagelets are also supported by this portlet. If Content Server
functionality is required in a portlet class directly, then extend CSPortlet
instead of this class.
To create a standard portlet that requires nothing other than an input pagename, configure
your portlet using this class as the portlet class and specify a portlet init parameter
named Constants#CONFIG_RENDERPAGE
, Constants#CONFIG_EDITPAGE
, and
Constants#CONFIG_HELPPAGE
for view, edit, and help portlet modes, respectively.
If more advanced processing is required, such as setting additional parameters into
the portlet request, override BasePortlet.ssProcessAction(ActionRequest, ActionResponse)
, Satellite.doView(RenderRequest, RenderResponse)
,Satellite.doEdit(RenderRequest, RenderResponse)
,
Satellite.doHelp(RenderRequest, RenderResponse)
, Satellite.getRenderPage(RenderRequest, RenderResponse)
, Satellite.getEditPage(RenderRequest, RenderResponse)
, or Satellite.getHelpPage(RenderRequest, RenderResponse)
and
set the parameters using BasePortlet.getSSRenderParams(RenderRequest)
and SSRenderParams#addParameter
.
Constructor Summary | |
---|---|
Satellite()
|
Method Summary | |
---|---|
protected Application |
constructApp(java.lang.String tempFolder)
Return a concrete implementation of a Satellite Server application. |
protected void |
doEdit(RenderRequest request,
RenderResponse response)
Implementation of GenericPortlet.doEdit that dispatches to a ContentServer page. |
protected void |
doHelp(RenderRequest request,
RenderResponse response)
Implementation of GenericPortlet.doHelp that dispatches to a ContentServer page. |
protected void |
doView(RenderRequest request,
RenderResponse response)
Implementation of GenericPortlet.doView that dispatches to a ContentServer page. |
protected java.lang.String |
getContentType()
Content type is not set by this method; rather, the application itself is allowed to set it. |
protected java.lang.String |
getEditPage(RenderRequest request,
RenderResponse response)
Get the default CS pagename to handle edit mode render requests for this portlet. |
protected java.lang.String |
getHelpPage(RenderRequest request,
RenderResponse response)
Get the default CS pagename to handle help mode render requests for this portlet. |
protected java.lang.String |
getRenderPage(RenderRequest request,
RenderResponse response)
Get the default CS pagename to handle render requests for this portlet. |
Methods inherited from class com.openmarket.Satellite.portlet.BasePortlet |
---|
destroy, getSSRenderParams, init, processAction, render, ssProcessAction |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Satellite()
Method Detail |
---|
protected Application constructApp(java.lang.String tempFolder) throws ConfigurationException
BasePortlet
constructApp
in class BasePortlet
tempFolder
- The temporary folder accessible to this application
ConfigurationException
- if application construction failsprotected java.lang.String getContentType()
getContentType
in class BasePortlet
protected java.lang.String getRenderPage(RenderRequest request, RenderResponse response)
Constants#PARAM_RENDERPAGENAME
.
The default implementation looks up a portlet init parameter named Constants#CONFIG_EDITPAGE
.
request
- The RenderRequest for the current request to renderresponse
- The RenderResponse for the current request to render
protected java.lang.String getEditPage(RenderRequest request, RenderResponse response)
Constants#PARAM_RENDERPAGENAME
.
The default implementation looks up a portlet init parameter named Constants#CONFIG_EDITPAGE
.
request
- The RenderRequest for the current request to renderresponse
- The RenderResponse for the current request to render
protected java.lang.String getHelpPage(RenderRequest request, RenderResponse response)
Constants#PARAM_RENDERPAGENAME
.
The default implementation looks up a portlet init parameter named Constants#CONFIG_HELPPAGE
.
request
- The RenderRequest for the current request to renderresponse
- The RenderResponse for the current request to render
protected void doView(RenderRequest request, RenderResponse response)
Constants#PARAM_RENDERPAGENAME
using BasePortlet.getSSRenderParams(RenderRequest)
.
request
- The portlet RenderRequestresponse
- The portlet RenderResponseSatellite.getRenderPage(RenderRequest, RenderResponse)
,
Constants#PARAM_RENDERPAGENAME
,
BasePortlet.getSSRenderParams(RenderRequest)
protected void doEdit(RenderRequest request, RenderResponse response)
Constants#PARAM_RENDERPAGENAME
using BasePortlet.getSSRenderParams(RenderRequest)
.
request
- The portlet RenderRequestresponse
- The portlet RenderResponseSatellite.getEditPage(RenderRequest, RenderResponse)
,
Constants#PARAM_RENDERPAGENAME
,
BasePortlet.getSSRenderParams(RenderRequest)
protected void doHelp(RenderRequest request, RenderResponse response)
Constants#PARAM_RENDERPAGENAME
using BasePortlet.getSSRenderParams(RenderRequest)
.
request
- The portlet RenderRequestresponse
- The portlet RenderResponseSatellite.getHelpPage(RenderRequest, RenderResponse)
,
Constants#PARAM_RENDERPAGENAME
,
BasePortlet.getSSRenderParams(RenderRequest)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |