|
|||||||||
| 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
| Field Summary | |
|---|---|
static java.lang.String |
INIT_PARAM_CONNECTION_TIMEOUT
|
| 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 |
| Field Detail |
|---|
public static final java.lang.String INIT_PARAM_CONNECTION_TIMEOUT
| Constructor Detail |
|---|
public WidgetPortlet()
| Method Detail |
|---|
public void init()
throws PortletException
GenericPortletsuper.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 GenericPortletPortletException - if an exception has occurred that interferes with the portlet normal operation.
UnavailableException - if the portlet is unavailable to perform init
public void processAction(ActionRequest req,
ActionResponse resp)
throws PortletException,
PortletSecurityException,
java.io.IOException
GenericPortletRenderResponse.createActionURL()
method.
The default implementation throws an exception.
processAction in interface PortletprocessAction in class GenericPortletreq - 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 problem
protected void doView(RenderRequest req,
RenderResponse resp)
throws PortletException,
PortletSecurityException,
java.io.IOException
GenericPortletview mode.
The default implementation throws an exception.
doView in class GenericPortletreq - 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 problem
protected void doDispatch(RenderRequest req,
RenderResponse resp)
throws PortletException,
PortletSecurityException,
java.io.IOException
GenericPortletdoView 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 GenericPortletreq - 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.IOExceptionpublic void destroy()
GenericPortlet
destroy in interface Portletdestroy in class GenericPortlet
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||