org.apache.cactus.client
class AbstractHttpClient
java.lang.Object
|
+--org.apache.cactus.client.AbstractHttpClient
- Direct Known Subclasses:
- JspHttpClient, ServletHttpClient
- Known Advisors:
- LogAspect
- 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.2 2002/04/21 12:45:44 vmassol Exp $
- Author:
- Vincent Massol
, Jason Robertson
Field Summary |
static ResourceBundle |
CONFIG
Properties file holding configuration data for Cactus.
|
static String |
CONFIG_NAME
Name of the Cactus configuration file
|
Constructor Summary |
AbstractHttpClient()
Abstract class for performing the steps necessary to run a test. |
Method Summary |
HttpURLConnection |
doTest(WebRequest theRequest)
Calls the test method indirectly by calling the Redirector servlet and
then open a second HTTP connection to retrieve the test results.
Affected by: LogAspect |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONFIG
public static final ResourceBundle CONFIG
- Properties file holding configuration data for Cactus.
CONFIG_NAME
public static final String CONFIG_NAME
- Name of the Cactus configuration file
AbstractHttpClient
public AbstractHttpClient()
- 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.
doTest
public HttpURLConnection doTest(WebRequest 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:
Throwable
- Throwable if an error occured in the test method or in the
redirector servlet.
Affected by: around() in LogAspect
.
Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.