Expresso 5-6

com.jcorporate.expresso.core.servlet.viewhandler
Class ViewHandler

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended bycom.jcorporate.expresso.core.servlet.StdServlet
              extended bycom.jcorporate.expresso.core.servlet.DBServlet
                  extended bycom.jcorporate.expresso.core.servlet.viewhandler.ViewHandler
All Implemented Interfaces:
Serializable, Servlet, ServletConfig
Direct Known Subclasses:
DefaultViewHandler, JSPViewHandler, XMLViewHandler

public abstract class ViewHandler
extends DBServlet

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.jcorporate.expresso.core.servlet.DBServlet
thisClass
 
Fields inherited from class com.jcorporate.expresso.core.servlet.StdServlet
mySchema
 
Constructor Summary
ViewHandler()
           
 
Method Summary
 void doGet(HttpServletRequest request, HttpServletResponse response)
          Both GET and POST for the ViewHandler simply pass the information from parameters and form fields on to the named controller object.
 void doPost(HttpServletRequest req, HttpServletResponse res)
          Handle POST method, typically from a form.
 String getTitle()
          Ancestors of this class override this method to return a specific title that is used by the security administration Controllers to describe the servlet
abstract  void handleView(ControllerResponse con, HttpServletRequest req, HttpServletResponse res)
          The ViewHandler implementation must implement only this method
 void process(HttpServletRequest request, HttpServletResponse response)
          This is a master method that is does the processing for both GET and POST.
 
Methods inherited from class com.jcorporate.expresso.core.servlet.DBServlet
destroy, getDBName, init, requireLogin, setDBName, setSkipLogin, setupChannels
 
Methods inherited from class com.jcorporate.expresso.core.servlet.StdServlet
getSchema, getServerName, getServerPort, getServletPrefix, getServletPrefix, getString, getString, handleParam, setSchema, showError, showError
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewHandler

public ViewHandler()
Method Detail

handleView

public abstract void handleView(ControllerResponse con,
                                HttpServletRequest req,
                                HttpServletResponse res)
                         throws ServletException,
                                IOException,
                                ControllerException,
                                NonHandleableException
The ViewHandler implementation must implement only this method

Throws:
ServletException
IOException
ControllerException
NonHandleableException

doGet

public void doGet(HttpServletRequest request,
                  HttpServletResponse response)
           throws ServletException,
                  IOException
Both GET and POST for the ViewHandler simply pass the information from parameters and form fields on to the named controller object. The Controller object passes back a series of Inputs, Outputs and Actions that are a result of the requested Controller

Overrides:
doGet in class DBServlet
Parameters:
request - Standard request object
response - Standard response object
Throws:
ServletException - If an uncaught exception occurs
IOException - If an I/O error occurs while communicating with the client

doPost

public void doPost(HttpServletRequest req,
                   HttpServletResponse res)
            throws ServletException,
                   IOException
Handle POST method, typically from a form. The only difference between get and post in this servlet is that when processing post, we look for a parameter with a name of the form "button_xxx", where xxx is the next state, as the state to controller into might vary depending on what button the user presses.

Overrides:
doPost in class DBServlet
Parameters:
req - Standard request object
res - Standard response object
Throws:
ServletException - If an uncaught exception occurs
IOException - If an I/O error occurs while communicating with the client

getTitle

public String getTitle()
Description copied from class: StdServlet
Ancestors of this class override this method to return a specific title that is used by the security administration Controllers to describe the servlet

Overrides:
getTitle in class StdServlet
Returns:

process

public void process(HttpServletRequest request,
                    HttpServletResponse response)
             throws ServletException,
                    IOException
This is a master method that is does the processing for both GET and POST.

Creation date: (1/10/01 8:38:52 AM) author Adam Rossi, PlatinumSolutions

Parameters:
request - javax.servlet.http.HttpServletRequest
response - javax.servlet.http.HttpServletResponse
Throws:
ServletException
IOException

Expresso 5-6

Please see www.jcorporate.com for information about new Expresso releases.