org.apache.cactus.client
Class AbstractHttpClient
java.lang.Object
|
+--org.apache.cactus.client.AbstractHttpClient
- Direct Known Subclasses:
- JspHttpClient, ServletHttpClient
- public abstract class AbstractHttpClient
- extends java.lang.Object
Abstract class for performing the steps necessary to run a test. It involves
opening a first HTTP connection to a server redirector, reading the output
stream and then opening a second HTTP connection to retrieve the test result.
- Version:
- $Id: AbstractHttpClient.java,v 1.8 2001/09/14 20:14:40 pier Exp $
- Author:
- Vincent Massol
Field Summary |
static java.util.ResourceBundle |
CONFIG
Properties file holding configuration data for Cactus. |
static java.lang.String |
CONFIG_NAME
Name of the Cactus configuration file |
Method Summary |
java.net.HttpURLConnection |
doTest(ServletTestRequest theRequest)
Calls the test method indirectly by calling the Redirector servlet and
then open a second HTTP connection to retrieve the test results. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONFIG_NAME
public static final java.lang.String CONFIG_NAME
- Name of the Cactus configuration file
CONFIG
public static final java.util.ResourceBundle CONFIG
- Properties file holding configuration data for Cactus.
AbstractHttpClient
public AbstractHttpClient()
doTest
public java.net.HttpURLConnection doTest(ServletTestRequest theRequest)
throws java.lang.Throwable
- Calls the test method indirectly by calling the Redirector servlet and
then open a second HTTP connection to retrieve the test results.
- Parameters:
theRequest
- the request containing all data to pass to the
redirector servlet.- Returns:
- the
HttpURLConnection
that contains the HTTP
response when the test was called. - Throws:
java.lang.Throwable
- if an error occured in the test method or in the
redirector servlet.
Copyright © 2000-2001 Apache Software Foundation. All Rights Reserved.