org.apache.cactus.client.connector.http
Class DefaultHttpClient

java.lang.Object
  extended byorg.apache.cactus.client.connector.http.DefaultHttpClient

public class DefaultHttpClient
extends java.lang.Object

Performs 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: DefaultHttpClient.java,v 1.10 2003/07/09 16:36:07 cmlenz Exp $
Author:
Vincent Massol, Jason Robertson

Field Summary
protected  WebConfiguration configuration
          Cactus configuration.
 
Constructor Summary
DefaultHttpClient(WebConfiguration theConfiguration)
          Initialize the Http client.
 
Method Summary
 java.net.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

configuration

protected WebConfiguration configuration
Cactus configuration.

Constructor Detail

DefaultHttpClient

public DefaultHttpClient(WebConfiguration theConfiguration)
Initialize the Http client.

Parameters:
theConfiguration - the Cactus configuration
Method Detail

doTest

public java.net.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:
java.lang.Throwable - if an error occured in the test method or in the redirector servlet.


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