Class PortletApplicationController
java.lang.Object
javax.portlet.GenericPortlet
org.exoplatform.webui.application.portlet.PortletApplicationController
- All Implemented Interfaces:
javax.portlet.EventPortlet,javax.portlet.Portlet,javax.portlet.PortletConfig,javax.portlet.ResourceServingPortlet
public class PortletApplicationController
extends javax.portlet.GenericPortlet
Created by The eXo Platform SAS May 8, 2006
This class is just the main entry point and act as an adapter on eXo web framework.
Hence every call is delegated to the PortletApplication which extends the WebuiApplication
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()When the portlet is destroyed by the portlet container, the onDestroy() method of the PortletApplication is called and then the PortletApplication is removed from the cache inside th WebControllervoidinit(javax.portlet.PortletConfig config) This method is called when the portlet is initialised, in eXo this is a lazy loading mechanism the main goal of this method is to generate an application ID applicationId_ = portlet-application-name + "/" + portlet-namevoidprocessAction(javax.portlet.ActionRequest req, javax.portlet.ActionResponse res) Delegate the action to the PortletApplication objectvoidprocessEvent(javax.portlet.EventRequest req, javax.portlet.EventResponse res) Delegate the action to the PortletApplication objectvoidrender(javax.portlet.RenderRequest req, javax.portlet.RenderResponse res) Delegate the render to the PortletApplication objectvoidserveResource(javax.portlet.ResourceRequest req, javax.portlet.ResourceResponse res) Delegate the action to the PortletApplication objectMethods inherited from class javax.portlet.GenericPortlet
doDispatch, doEdit, doHeaders, doHelp, doView, getContainerRuntimeOptions, getDefaultNamespace, getInitParameter, getInitParameterNames, getNextPossiblePortletModes, getPortletConfig, getPortletContext, getPortletName, getProcessingEventQNames, getPublicRenderParameterNames, getPublishingEventQNames, getResourceBundle, getSupportedLocales, getTitle, init
-
Field Details
-
log
protected static org.exoplatform.services.log.Log log
-
-
Constructor Details
-
PortletApplicationController
public PortletApplicationController()
-
-
Method Details
-
init
public void init(javax.portlet.PortletConfig config) throws javax.portlet.PortletException This method is called when the portlet is initialised, in eXo this is a lazy loading mechanism the main goal of this method is to generate an application ID applicationId_ = portlet-application-name + "/" + portlet-name- Specified by:
initin interfacejavax.portlet.Portlet- Overrides:
initin classjavax.portlet.GenericPortlet- Throws:
javax.portlet.PortletException
-
processAction
public void processAction(javax.portlet.ActionRequest req, javax.portlet.ActionResponse res) throws javax.portlet.PortletException, IOException Delegate the action to the PortletApplication object- Specified by:
processActionin interfacejavax.portlet.Portlet- Overrides:
processActionin classjavax.portlet.GenericPortlet- Throws:
javax.portlet.PortletExceptionIOException
-
processEvent
public void processEvent(javax.portlet.EventRequest req, javax.portlet.EventResponse res) Delegate the action to the PortletApplication object- Specified by:
processEventin interfacejavax.portlet.EventPortlet- Overrides:
processEventin classjavax.portlet.GenericPortlet
-
serveResource
public void serveResource(javax.portlet.ResourceRequest req, javax.portlet.ResourceResponse res) throws javax.portlet.PortletException, IOException Delegate the action to the PortletApplication object- Specified by:
serveResourcein interfacejavax.portlet.ResourceServingPortlet- Overrides:
serveResourcein classjavax.portlet.GenericPortlet- Throws:
javax.portlet.PortletExceptionIOException
-
render
public void render(javax.portlet.RenderRequest req, javax.portlet.RenderResponse res) throws javax.portlet.PortletException, IOException Delegate the render to the PortletApplication object- Specified by:
renderin interfacejavax.portlet.Portlet- Overrides:
renderin classjavax.portlet.GenericPortlet- Throws:
javax.portlet.PortletExceptionIOException
-
destroy
public void destroy()When the portlet is destroyed by the portlet container, the onDestroy() method of the PortletApplication is called and then the PortletApplication is removed from the cache inside th WebController- Specified by:
destroyin interfacejavax.portlet.Portlet- Overrides:
destroyin classjavax.portlet.GenericPortlet
-