org.apache.cactus.server
Class AbstractWebTestController
java.lang.Object
org.apache.cactus.server.AbstractWebTestController
- All Implemented Interfaces:
- TestController
- Direct Known Subclasses:
- JspTestController, ServletTestController
- public abstract class AbstractWebTestController
- extends java.lang.Object
- implements TestController
Controller that extracts the requested service from the HTTP request and
executes the request. Examples of requests are: executing a given test,
returning the test result, verifying that the controller is correctly
configured, etc.
- Version:
- $Id: AbstractWebTestController.java,v 1.11 2003/05/26 11:45:22 cmlenz Exp $
- Author:
- Vincent Massol
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractWebTestController
public AbstractWebTestController()
getTestCaller
protected abstract AbstractWebTestCaller getTestCaller(WebImplicitObjects theObjects)
- Parameters:
theObjects
- the implicit objects coming from the redirector
- Returns:
- the test caller that will be used to execute the test
handleRequest
public void handleRequest(ImplicitObjects theObjects)
throws javax.servlet.ServletException
- Handles the incoming request by extracting the requested service and
calling the correct method on a
WebTestCaller
.
- Specified by:
handleRequest
in interface TestController
- Parameters:
theObjects
- the implicit objects (they are different for the
different redirectors)
- Throws:
javax.servlet.ServletException
- if an error occurs when servicing the
request
Copyright © 2000-2003 Apache Software Foundation. All Rights Reserved.