net.sf.jbenchmark
Class HttpTestResult

java.lang.Object
  extended bynet.sf.jbenchmark.TestResult
      extended bynet.sf.jbenchmark.HttpTestResult

public class HttpTestResult
extends TestResult

The result of an HTTP test.

Version:
$Id: HttpTestResult.java,v 1.3 2004/06/28 01:15:37 bdargan Exp $
Author:
Adam Murdoch

Constructor Summary
HttpTestResult(Test test, int statusCode, long responseSize, long getTime)
          Creates a HttpTestResult.
 
Method Summary
 long getResponseSize()
          Returns the size of the response body (ie without the headers), in bytes.
 long getResponseTime()
          Returns the time between making the request and receiving + parsing the response header.
 int getStatusCode()
          Gets the status code.
 
Methods inherited from class net.sf.jbenchmark.TestResult
getDuration, getTest, setDuration, setTest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpTestResult

public HttpTestResult(Test test,
                      int statusCode,
                      long responseSize,
                      long getTime)
Creates a HttpTestResult.

Method Detail

getStatusCode

public int getStatusCode()
Gets the status code.


getResponseSize

public long getResponseSize()
Returns the size of the response body (ie without the headers), in bytes.


getResponseTime

public long getResponseTime()
Returns the time between making the request and receiving + parsing the response header. Does not include the time read the response body.