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

java.lang.Object
  extended by org.apache.cactus.internal.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 238991 2004-05-22 11:34:50Z vmassol $

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 © 2001-2009 The Apache Software Foundation. All Rights Reserved.