org.apache.jmeter.protocol.http.sampler
Class HTTPSampleResult
- Serializable
public class HTTPSampleResult
This is a specialisation of the SampleResult class for the HTTP protocol.
addAssertionResult, addSubResult, configure, createTestSample, createTestSample, currentTimeInMs, getAllThreads, getAssertionResults, getBytes, getContentType, getDataEncoding, getDataEncodingNoDefault, getDataEncodingWithDefault, getDataType, getEndTime, getErrorCount, getGroupThreads, getIdleTime, getLatency, getMediaType, getParent, getRequestHeaders, getResponseCode, getResponseData, getResponseDataAsString, getResponseHeaders, getResponseMessage, getResultFileName, getSampleCount, getSampleLabel, getSampleLabel, getSamplerData, getSaveConfig, getStartTime, getSubResults, getThreadName, getTime, getTimeStamp, getURL, getUrlAsString, isMonitor, isResponseCodeOK, isStampedAtStart, isStopTest, isStopTestNow, isStopThread, isSuccessful, latencyEnd, markFile, sampleEnd, samplePause, sampleResume, sampleStart, setAllThreads, setBytes, setContentType, setDataEncoding, setDataType, setEncodingAndType, setEndTime, setErrorCount, setGroupThreads, setLatency, setMonitor, setParent, setRequestHeaders, setResponseCode, setResponseCodeOK, setResponseData, setResponseData, setResponseHeaders, setResponseMessage, setResponseMessageOK, setResultFileName, setSampleCount, setSampleLabel, setSamplerData, setSaveConfig, setStampAndTime, setStartTime, setStopTest, setStopTestNow, setStopThread, setSuccessful, setThreadName, setTime, setTimeStamp, setURL, storeSubResult, toString |
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
res - existing sample result
getCookies
public String getCookies()
getDataEncodingWithDefault
public String getDataEncodingWithDefault()
Overrides the method from SampleResult - so the encoding can be extracted from
the Meta content-type if necessary.
Updates the dataEncoding field if the content-type is found.
- getDataEncodingWithDefault in interface SampleResult
- the dataEncoding value as a String
getHTTPMethod
public String getHTTPMethod()
getQueryString
public String getQueryString()
Fetch the query string
getRedirectLocation
public String getRedirectLocation()
isRedirect
public boolean isRedirect()
Determine whether this result is a redirect.
- true iif res is an HTTP redirect response
setCookies
public void setCookies(String string)
string - representing the cookies
setHTTPMethod
public void setHTTPMethod(String method)
setQueryString
public void setQueryString(String string)
Save the query string
string - the query string
setRedirectLocation
public void setRedirectLocation(String redirectLocation)
Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.