org.apache.geronimo.console
Class MultiPageAbstractHandler

java.lang.Object
  extended by org.apache.geronimo.console.MultiPageAbstractHandler
Direct Known Subclasses:
AbstractHandler, AbstractHandler, AbstractThreadHandler, BaseApacheHandler, BaseCAHandler, BaseImportExportHandler, BaseKeystoreHandler

public abstract class MultiPageAbstractHandler
extends Object

Base class for handlers for the multi page portlet. Each one is expected to handle a single page -- the action request before the page is rendered, the render request, and the action request after the page is rendered.


Field Summary
protected static String AFTER_ACTION
           
protected static String BEFORE_ACTION
           
protected  javax.portlet.PortletRequestDispatcher view
           
 
Constructor Summary
protected MultiPageAbstractHandler(String mode, String viewName)
           
 
Method Summary
abstract  String actionAfterView(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response, MultiPageModel model)
          Returns the mode for the next screen to render (usually the one after this in the sequence)
abstract  String actionBeforeView(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response, MultiPageModel model)
          Returns the mode for the next screen to render (usually this one)
 void destroy()
           
 String getMode()
           
 Properties getUploadFields()
           
 Map<String,org.apache.commons.fileupload.FileItem> getUploadFiles()
           
 javax.portlet.PortletRequestDispatcher getView()
           
 void init(javax.portlet.PortletConfig portletConfig)
           
protected static boolean isEmpty(String s)
           
abstract  void renderView(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, MultiPageModel model)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BEFORE_ACTION

protected static final String BEFORE_ACTION
See Also:
Constant Field Values

AFTER_ACTION

protected static final String AFTER_ACTION
See Also:
Constant Field Values

view

protected javax.portlet.PortletRequestDispatcher view
Constructor Detail

MultiPageAbstractHandler

protected MultiPageAbstractHandler(String mode,
                                   String viewName)
Method Detail

getMode

public String getMode()

init

public void init(javax.portlet.PortletConfig portletConfig)
          throws javax.portlet.PortletException
Throws:
javax.portlet.PortletException

destroy

public void destroy()

getView

public javax.portlet.PortletRequestDispatcher getView()

isEmpty

protected static boolean isEmpty(String s)

actionBeforeView

public abstract String actionBeforeView(javax.portlet.ActionRequest request,
                                        javax.portlet.ActionResponse response,
                                        MultiPageModel model)
                                 throws javax.portlet.PortletException,
                                        IOException
Returns the mode for the next screen to render (usually this one)

Throws:
javax.portlet.PortletException
IOException

renderView

public abstract void renderView(javax.portlet.RenderRequest request,
                                javax.portlet.RenderResponse response,
                                MultiPageModel model)
                         throws javax.portlet.PortletException,
                                IOException
Throws:
javax.portlet.PortletException
IOException

actionAfterView

public abstract String actionAfterView(javax.portlet.ActionRequest request,
                                       javax.portlet.ActionResponse response,
                                       MultiPageModel model)
                                throws javax.portlet.PortletException,
                                       IOException
Returns the mode for the next screen to render (usually the one after this in the sequence)

Throws:
javax.portlet.PortletException
IOException

getUploadFiles

public Map<String,org.apache.commons.fileupload.FileItem> getUploadFiles()

getUploadFields

public Properties getUploadFields()


Copyright © 2003-2008 The Apache Geronimo development community. All Rights Reserved.