| java.lang.Object com.nabhinc.portlet.mvcportlet.core.ControllerPortlet
ControllerPortlet | public class ControllerPortlet implements Portlet(Code) | | Main controller class that handles all incoming processAction
and render requests.
author: Padmanabh Dabke author: (c) 2004 Nabh Information Systems, Inc. All Rights Reserved. |
Method Summary | |
public void | destroy() This request marks the end of the life cycle of the portlet. | public void | init(PortletConfig config) ControllerPortlet initialization mainly consists of reading portlet
configuration files and constructing instances of all supporting
class needed for portlet operation. | public void | preprocessAction(ActionRequest request, ActionResponse response) This method is invoked before passing a portlet request to
an action processor. | public void | preprocessRender(RenderRequest request, RenderResponse response) This method is invoked before passing a portlet request to
an view handler. | public void | processAction(ActionRequest request, ActionResponse response) Process action method is typically called when a user submits a form, or clicks
on a link corresponding to an ActionURL. | public void | render(RenderRequest request, RenderResponse response) This method handles portlet render requests in "view" mode. |
destroy | public void destroy()(Code) | | This request marks the end of the life cycle of the portlet. The method
calls destroy method on all registered ActionProcessor and RenderProcessor
objects.
|
init | public void init(PortletConfig config) throws PortletException(Code) | | ControllerPortlet initialization mainly consists of reading portlet
configuration files and constructing instances of all supporting
class needed for portlet operation. ControllerPortlet expects at
least one parameter "configFile" in it's portlet configuration
defined in "portlet.xml" file. The value of this parameter must be
the context relative path for the portlet configuration file. In
addition, you can also specifiy "messageFile". This parameter
specifies the location of the file that defines internationalized
message strings. If this path starts with a "/", then it is assumed
to be relative to the Web application root directory. Otherwise, it
is assumed to be in the same location as portlet
configuration file.
Parameters: config - Portlet configuration throws: PortletException - |
preprocessAction | public void preprocessAction(ActionRequest request, ActionResponse response) throws PortletException(Code) | | This method is invoked before passing a portlet request to
an action processor. The default implementation is empty
Portlet subclasses should
override this method to implement preprocessing common
to all actions. If you encounters errors in this call,
you should wrap the exception in a PortletException and throw.
Parameters: request - Parameters: response - |
preprocessRender | public void preprocessRender(RenderRequest request, RenderResponse response) throws PortletException(Code) | | This method is invoked before passing a portlet request to
an view handler. The default implementation is empty.
Portlet subclasses should
override this method to implement preprocessing common
to all view types.
Parameters: request - Parameters: response - |
processAction | public void processAction(ActionRequest request, ActionResponse response) throws PortletException, IOException(Code) | | Process action method is typically called when a user submits a form, or clicks
on a link corresponding to an ActionURL. Please see MVCPortlet user guide for a
detailed description of this method implementation.
Parameters: request - Parameters: response - throws: PortletException - throws: IOException - |
render | public void render(RenderRequest request, RenderResponse response) throws PortletException, IOException(Code) | | This method handles portlet render requests in "view" mode. Please see
MVCPortlet user guide for details about this method.
|
|
|