|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.portlet.GenericPortlet
org.jboss.portal.portlet.samples.basic.FailDuringInitPortlet
public class FailDuringInitPortlet
A portlet that will fail only one time during startup (so it is possible to restart it).
| Constructor Summary | |
|---|---|
FailDuringInitPortlet()
|
|
| Method Summary | |
|---|---|
protected void |
doView(RenderRequest renderRequest,
RenderResponse renderResponse)
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). |
| Methods inherited from class javax.portlet.GenericPortlet |
|---|
destroy, doDispatch, doEdit, doHelp, getInitParameter, getInitParameterNames, getPortletConfig, getPortletContext, getPortletName, getResourceBundle, getTitle, init, processAction, render |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FailDuringInitPortlet()
| 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
protected void doView(RenderRequest renderRequest,
RenderResponse renderResponse)
throws PortletException,
java.io.IOException
GenericPortletview mode.
The default implementation throws an exception.
doView in class GenericPortletrenderRequest - the portlet requestrenderResponse - 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||