|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectGenericPortlet
com.openmarket.Satellite.portlet.BasePortlet
public abstract class BasePortlet
Abstract implementation of a portlet class that invokes Satellite Server functionality. Application lifecycle is managed by this portlet's init and destroy methods.
Constructor Summary | |
---|---|
BasePortlet()
|
Method Summary | |
---|---|
protected abstract Application |
constructApp(java.lang.String tempFolder)
Return a concrete implementation of a Satellite Server application. |
void |
destroy()
Destroys the portlet. |
protected abstract java.lang.String |
getContentType()
Return the content type to be used for the response if available. |
protected SSRenderParams |
getSSRenderParams(RenderRequest req)
Get the SSRenderParams object that holds all request parameters that are sent by Satellite Server to Content Server. |
void |
init(PortletConfig config)
Initializes the portlet. |
void |
processAction(ActionRequest req,
ActionResponse res)
It's not possible to override ProcessAction in the satellite portlet. |
void |
render(RenderRequest req,
RenderResponse res)
Render method is called to render the portlet. |
protected void |
ssProcessAction(ActionRequest request,
ActionResponse response)
This method is called by BasePortlet.processAction(ActionRequest, ActionResponse) and allows for custom
logic to occur at the portlet level prior to the execution of the Satellite
Server logic. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasePortlet()
Method Detail |
---|
protected abstract Application constructApp(java.lang.String tempFolder) throws ConfigurationException
tempFolder
- The temporary folder accessible to this application
ConfigurationException
- if application construction failspublic void init(PortletConfig config) throws PortletException
config
- input Portlet Config object.
PortletException
public void destroy()
public final void processAction(ActionRequest req, ActionResponse res)
req
- the portlet ActionRequestres
- the portlet ActionResponseBasePortlet.ssProcessAction(ActionRequest, ActionResponse)
protected void ssProcessAction(ActionRequest request, ActionResponse response)
BasePortlet.processAction(ActionRequest, ActionResponse)
and allows for custom
logic to occur at the portlet level prior to the execution of the Satellite
Server logic.
request
- ActionRequestresponse
- ActionResponseprotected final SSRenderParams getSSRenderParams(RenderRequest req)
SSRenderParams#addParameter
method in order
to set arbitrary parameters such as context parameters, portal user
information and other server-specific information into the request
object for the use of Content Server when the portlet is rendered.
req
- RenderRequest object
public final void render(RenderRequest req, RenderResponse res) throws PortletException, java.io.IOException
req
- render requestres
- render response
PortletException
java.io.IOException
protected abstract java.lang.String getContentType()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |