com.sun.faban.harness.webclient
Class XFormServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.sun.faban.harness.webclient.XFormServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class XFormServlet
extends HttpServlet

The XFormServlet is the glue code between Faban and Chiba XForms. It serves get requests to initially access the XForm and post requests for subsequent interactions.

See Also:
Serialized Form

Constructor Summary
XFormServlet()
           
 
Method Summary
 void doGet(HttpServletRequest request, HttpServletResponse response)
          A get request starts a new form.
 void doPost(HttpServletRequest request, HttpServletResponse response)
          A post request deals with form interactions.
 void init()
          Initializes the servlet.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, 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

XFormServlet

public XFormServlet()
Method Detail

init

public void init()
          throws ServletException
Initializes the servlet.

Overrides:
init in class GenericServlet
Throws:
ServletException

doGet

public void doGet(HttpServletRequest request,
                  HttpServletResponse response)
           throws ServletException,
                  IOException
A get request starts a new form.

Overrides:
doGet in class HttpServlet
Parameters:
request - The servlet request
response - The servlet response
Throws:
ServletException - Error in request handling
IOException - Error doing other IO

doPost

public void doPost(HttpServletRequest request,
                   HttpServletResponse response)
            throws ServletException,
                   IOException
A post request deals with form interactions.

Overrides:
doPost in class HttpServlet
Parameters:
request - The servlet request
response - The servlet response
Throws:
ServletException - Error in request handling
IOException - Error doing other IO