|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.portlet.GenericPortlet
org.jboss.portal.widget.WidgetPortlet
public class WidgetPortlet
Constructor Summary | |
---|---|
WidgetPortlet()
|
Method Summary | |
---|---|
void |
destroy()
Called by the portlet container to indicate to a portlet that the portlet is being taken out of service. |
protected void |
doDispatch(RenderRequest req,
RenderResponse resp)
The default implementation of this method routes the render request to a set of helper methods depending on the current portlet mode the portlet is currently in. |
protected void |
doEditContent(RenderRequest req,
RenderResponse resp)
|
protected void |
doView(RenderRequest req,
RenderResponse resp)
Helper method to serve up the mandatory view mode. |
void |
init()
A convenience method which can be overridden so that there's no need to call super.init(config) . |
void |
processAction(ActionRequest req,
ActionResponse resp)
Called by the portlet container to allow the portlet to process an action request. |
Methods inherited from class javax.portlet.GenericPortlet |
---|
doEdit, doHelp, getInitParameter, getInitParameterNames, getPortletConfig, getPortletContext, getPortletName, getResourceBundle, getTitle, init, render |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WidgetPortlet()
Method Detail |
---|
public void init() throws PortletException
GenericPortlet
super.init(config)
.
Instead of overriding GenericPortlet.init(PortletConfig)
, simply override this method and it will be called by
GenericPortlet.init(PortletConfig config)
. The PortletConfig
object can still be
retrieved via GenericPortlet.getPortletConfig()
.
init
in class GenericPortlet
PortletException
- if an exception has occurred that interferes with the portlet normal operation.
UnavailableException
- if the portlet is unavailable to perform initpublic void processAction(ActionRequest req, ActionResponse resp) throws PortletException, PortletSecurityException, java.io.IOException
GenericPortlet
RenderResponse.createActionURL()
method.
The default implementation throws an exception.
processAction
in interface Portlet
processAction
in class GenericPortlet
req
- the action requestresp
- the action response
PortletException
- if the portlet cannot fulfilling the request
UnavailableException
- if the portlet is unavailable to process the action at this time
PortletSecurityException
- if the portlet cannot fullfill this request because of security reasons
java.io.IOException
- if the streaming causes an I/O problemprotected void doView(RenderRequest req, RenderResponse resp) throws PortletException, PortletSecurityException, java.io.IOException
GenericPortlet
view
mode.
The default implementation throws an exception.
doView
in class GenericPortlet
req
- the portlet requestresp
- the render response
PortletException
- if the portlet cannot fulfilling the request
UnavailableException
- if the portlet is unavailable to perform render at this time
PortletSecurityException
- if the portlet cannot fullfill this request because of security reasons
java.io.IOException
- if the streaming causes an I/O problemprotected void doDispatch(RenderRequest req, RenderResponse resp) throws PortletException, PortletSecurityException, java.io.IOException
GenericPortlet
doView
for handling
view
requests doEdit
for handling edit
requests doHelp
for handling help
requests minimized
, this method does not invoke any of the portlet mode
rendering methods.
For handling custom portlet modes the portlet should override this method.
doDispatch
in class GenericPortlet
req
- the render requestresp
- the render response
PortletException
- if the portlet cannot fulfilling the request
UnavailableException
- if the portlet is unavailable to perform render at this time
PortletSecurityException
- if the portlet cannot fullfill this request because of security reasons
java.io.IOException
- if the streaming causes an I/O problemGenericPortlet.doView(RenderRequest,RenderResponse)
,
GenericPortlet.doEdit(RenderRequest,RenderResponse)
,
GenericPortlet.doHelp(RenderRequest,RenderResponse)
protected void doEditContent(RenderRequest req, RenderResponse resp) throws PortletException, PortletSecurityException, java.io.IOException
PortletException
PortletSecurityException
java.io.IOException
public void destroy()
GenericPortlet
destroy
in interface Portlet
destroy
in class GenericPortlet
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |