Apache JMeter
2.0.1.20050615

org.apache.jmeter.protocol.http.sampler
Class HTTPSampleResult

java.lang.Object
  extended byorg.apache.jmeter.samplers.SampleResult
      extended byorg.apache.jmeter.protocol.http.sampler.HTTPSampleResult
All Implemented Interfaces:
Serializable

public class HTTPSampleResult
extends SampleResult

This is a specialisation of the SampleResult class for the HTTP protocol.

Version:
$Revision: 1.10.2.1 $ updated on $Date: 2004/09/20 23:43:39 $
Author:
Jordi Salvat i Alabart
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.apache.jmeter.samplers.SampleResult
SampleResult.Test
 
Field Summary
 
Fields inherited from class org.apache.jmeter.samplers.SampleResult
BINARY, TEXT
 
Constructor Summary
HTTPSampleResult()
           
HTTPSampleResult(HTTPSampleResult res)
          Construct a 'parent' result for an already-existing result, essentially cloning it
HTTPSampleResult(long elapsed)
           
 
Method Summary
 String getCookies()
           
 String getHTTPMethod()
           
 String getQueryString()
          Fetch the query string
 String getRedirectLocation()
           
 String getSamplerData()
           
 boolean isRedirect()
          Determine whether this result is a redirect.
 void setCookies(String string)
           
 void setHTTPMethod(String method)
           
 void setQueryString(String string)
          Save the query string
 void setRedirectLocation(String redirectLocation)
           
 
Methods inherited from class org.apache.jmeter.samplers.SampleResult
addAssertionResult, addSubResult, configure, createTestSample, createTestSample, getAssertionResults, getContentType, getDataEncoding, getDataType, getEndTime, getRequestHeaders, getResponseCode, getResponseData, getResponseHeaders, getResponseMessage, getSampleLabel, getStartTime, getSubResults, getThreadName, getTime, getTimeStamp, getURL, isMarked, isMonitor, isStopTest, isStopThread, isSuccessful, responseDataAsBA, sampleEnd, samplePause, sampleResume, sampleStart, setContentType, setDataEncoding, setDataType, setMarked, setMonitor, setRequestHeaders, setResponseCode, setResponseData, setResponseHeaders, setResponseMessage, setSampleLabel, setSamplerData, setStartTime, setStopTest, setStopThread, setSuccessful, setThreadName, setTime, setURL, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HTTPSampleResult

public HTTPSampleResult()

HTTPSampleResult

public HTTPSampleResult(long elapsed)

HTTPSampleResult

public HTTPSampleResult(HTTPSampleResult res)
Construct a 'parent' result for an already-existing result, essentially cloning it

Parameters:
res - existing sample result
Method Detail

setHTTPMethod

public void setHTTPMethod(String method)

getHTTPMethod

public String getHTTPMethod()

setRedirectLocation

public void setRedirectLocation(String redirectLocation)

getRedirectLocation

public String getRedirectLocation()

isRedirect

public boolean isRedirect()
Determine whether this result is a redirect.

Returns:
true iif res is an HTTP redirect response

getSamplerData

public String getSamplerData()
Overrides:
getSamplerData in class SampleResult

getCookies

public String getCookies()
Returns:
cookies as a string

setCookies

public void setCookies(String string)
Parameters:
string - representing the cookies

getQueryString

public String getQueryString()
Fetch the query string

Returns:
the query string

setQueryString

public void setQueryString(String string)
Save the query string

Parameters:
string - the query string

Apache JMeter
2.0.1.20050615

Copyright © 1998-2005 Apache Software Foundation. All Rights Reserved.