org.apache.cactus.server
Class AbstractWebTestController

java.lang.Object
  extended byorg.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

Constructor Summary
AbstractWebTestController()
           
 
Method Summary
protected abstract  AbstractWebTestCaller getTestCaller(WebImplicitObjects theObjects)
           
 void handleRequest(ImplicitObjects theObjects)
          Handles the incoming request by extracting the requested service and calling the correct method on a WebTestCaller.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractWebTestController

public AbstractWebTestController()
Method Detail

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.