| java.lang.Object org.jboss.portlet.JBossPortlet
All known Subclasses: org.jboss.portal.core.samples.basic.ModePortlet, org.jboss.portal.core.samples.users.CurrentUsersPortlet, org.jboss.portal.core.ui.portlet.user.UserPortlet, org.jboss.portal.core.samples.basic.TestPortlet, org.jboss.portal.core.ui.portlet.catalog.CatalogPortlet, org.jboss.portal.core.ui.portlet.role.RolePortlet, org.jboss.portal.core.cms.ui.admin.CMSAdminPortlet,
JBossPortlet | public class JBossPortlet implements Portlet(Code) | | The JBossPortlet.
author: Julien Viet version: $Revision: 8786 $ |
Method Summary | |
public void | destroy() | protected void | doAdmin(JBossRenderRequest request, JBossRenderResponse response) Throw a PortletException . | protected void | doDispatch(JBossRenderRequest request, JBossRenderResponse response) | protected void | doEdit(JBossRenderRequest request, JBossRenderResponse response) Provide a default generic editor for preferences that produce HTML markup. | protected void | doHelp(JBossRenderRequest request, JBossRenderResponse response) Throw a PortletException . | protected void | doView(JBossRenderRequest request, JBossRenderResponse response) Throw a PortletException . | public String | getDefaultOperation() Return the string main, it can be overriden to return another value by subclasses. | public String | getInitParameter(String name) | public Enumeration | getInitParameterNames() | public String | getOperationName() Return the string op, it can be overriden to return another value by subclasses. | public PortletConfig | getPortletConfig() | public PortletContext | getPortletContext() | public String | getPortletName() | public ResourceBundle | getResourceBundle(Locale locale) | protected String | getTitle(RenderRequest request) | public void | init() | public void | init(PortletConfig config) | protected void | processAction(JBossActionRequest req, JBossActionResponse resp) Calls doDispatch(JBossActionRequest,JBossActionResponse) . | public void | processAction(ActionRequest request, ActionResponse response) | public void | processAdmin(JBossActionRequest req, JBossActionResponse resp) | protected void | processDispatch(JBossActionRequest req, JBossActionResponse resp) This method looks up the method corresponding to the action. | public void | processEdit(JBossActionRequest req, JBossActionResponse resp) Default doEdit method that works in coordination with doEdit(JBossRenderRequest,JBossRenderResponse). | public void | processHelp(JBossActionRequest req, JBossActionResponse resp) | public void | processView(JBossActionRequest req, JBossActionResponse resp) | protected void | render(JBossRenderRequest req, JBossRenderResponse resp) Calls doDispatch(JBossRenderRequest,JBossRenderResponse) . | public void | render(RenderRequest req, RenderResponse resp) |
JBossPortlet | public JBossPortlet()(Code) | | |
destroy | public void destroy()(Code) | | |
getDefaultOperation | public String getDefaultOperation()(Code) | | Return the string main, it can be overriden to return another value by subclasses.
|
getOperationName | public String getOperationName()(Code) | | Return the string op, it can be overriden to return another value by subclasses.
|
getPortletConfig | public PortletConfig getPortletConfig()(Code) | | |
getPortletContext | public PortletContext getPortletContext()(Code) | | |
getTitle | protected String getTitle(RenderRequest request)(Code) | | |
init | public void init() throws PortletException(Code) | | |
init | public void init(PortletConfig config) throws PortletException(Code) | | |
processAction | public void processAction(ActionRequest request, ActionResponse response) throws PortletException, PortletSecurityException, IOException(Code) | | |
processDispatch | protected void processDispatch(JBossActionRequest req, JBossActionResponse resp) throws PortletException, PortletSecurityException, IOException(Code) | | This method looks up the method corresponding to the action. It uses the action parameter using the parameter
name defines by the operationName field of this class. If not method is found it uses the method
defined by the return of the method getDefaultOperation() of this class. In order to be found a
method must use JBossActionRequest and in the signature. If not
valid dispatcher is found it throws a PortletException, otherwise it invokes the method by reflection. The invoked
method may declare exceptions in the throws clause of the method. Whenever an exception is raised during the
invocation of the method, a decision is taken depending on the nature of the exception :
- If the exception is an instanceof
PortletException , IOException then this
exception is rethrown as is since this method declares them in its throws clause - If the exception is an
instance of
RuntimeException or Error>/code>, it is rethrown as is - Otherwise a
PortletException is created with the caught exception as cause and thrown
|
render | public void render(RenderRequest req, RenderResponse resp) throws PortletException, PortletSecurityException, IOException(Code) | | |
|
|