com.sun.faban.harness.webclient
Class XFormServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XFormServlet
public XFormServlet()
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 requestresponse
- 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 requestresponse
- The servlet response
- Throws:
ServletException
- Error in request handling
IOException
- Error doing other IO