org.apache.commons.cactus.server
Class ServletTestRedirector

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--org.apache.commons.cactus.server.ServletTestRedirector
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ServletTestRedirector
extends javax.servlet.http.HttpServlet

Generic Servlet redirector that calls a test method on the server side.

Version:
1.0
See Also:
ServletTestCaller, Serialized Form

Constructor Summary
ServletTestRedirector()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest theRequest, javax.servlet.http.HttpServletResponse theResponse)
          Handle GET requests.
 void doPost(javax.servlet.http.HttpServletRequest theRequest, javax.servlet.http.HttpServletResponse theResponse)
          Handle POST request.
 
Methods inherited from class javax.servlet.http.HttpServlet
service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletTestRedirector

public ServletTestRedirector()
Method Detail

doGet

public void doGet(javax.servlet.http.HttpServletRequest theRequest,
                  javax.servlet.http.HttpServletResponse theResponse)
           throws javax.servlet.ServletException
Handle GET requests.
Parameters:
theRequest - the incoming HTTP client request
theResponse - the outgoing HTTP client request to send back.
Throws:
javax.servlet.ServletException - if an error occurred when sending back the response to the client.

doPost

public void doPost(javax.servlet.http.HttpServletRequest theRequest,
                   javax.servlet.http.HttpServletResponse theResponse)
            throws javax.servlet.ServletException
Handle POST request. Extract from the HTTP request parameter, the Service to perform : call test method or return tests results.
Parameters:
theRequest - the incoming HTTP request.
theResponse - the outgoing HTTP response.
Throws:
javax.servlet.ServletException - if an unexpected error occurred


Copyright © 2000-2001 Apache Software Foundation. All Rights Reserved.