public class HTTPSampleResult extends SampleResult
BINARY, DEFAULT_ENCODING, DEFAULT_HTTP_ENCODING, TEXT| Constructor and Description |
|---|
HTTPSampleResult() |
HTTPSampleResult(HTTPSampleResult res)
Construct a 'parent' result for an already-existing result, essentially
cloning it
|
HTTPSampleResult(long elapsed) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCookies() |
String |
getDataEncodingNoDefault()
Overrides the method from SampleResult - so the encoding can be extracted from
the Meta content-type if necessary.
|
String |
getDataEncodingWithDefault(String defaultEncoding)
Overrides the method from SampleResult - so the encoding can be extracted from
the Meta content-type if necessary.
|
String |
getHTTPMethod() |
String |
getQueryString()
Fetch the query string
|
String |
getRedirectLocation() |
String |
getSamplerData()
Overrides version in Sampler data to provide more details
|
List<String> |
getSearchableTokens()
Get a list of all tokens that should be visible to searching
|
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) |
void |
setResponseNoContent() |
addAssertionResult, addRawSubResult, addSubResult, addSubResult, cleanAfterSample, clone, connectEnd, createTestSample, createTestSample, currentTimeInMillis, getAllThreads, getAssertionResults, getBodySize, getBodySizeAsLong, getBytes, getBytesAsLong, getConnectTime, getContentType, getDataEncodingWithDefault, getDataType, getEndTime, getErrorCount, getFirstAssertionFailureMessage, getGroupThreads, getHeadersSize, getIdleTime, getLatency, getMediaType, getParent, getRequestHeaders, getResponseCode, getResponseData, getResponseDataAsString, getResponseHeaders, getResponseMessage, getResultFileName, getSampleCount, getSampleLabel, getSampleLabel, getSaveConfig, getSentBytes, getStartTime, getSubResults, getTestLogicalAction, getThreadName, getTime, getTimeStamp, getURL, getUrlAsString, isBinaryType, isIgnore, isMonitor, isRenameSampleLabel, isResponseCodeOK, isStampedAtStart, isStartNextThreadLoop, isStopTest, isStopTestNow, isStopThread, isSuccessful, latencyEnd, markFile, removeAssertionResults, removeSubResults, sampleEnd, samplePause, sampleResume, sampleStart, setAllThreads, setBodySize, setBodySize, setBytes, setBytes, setConnectTime, setContentType, setDataEncoding, setDataType, setEncodingAndType, setEndTime, setErrorCount, setGroupThreads, setHeadersSize, setIdleTime, setIgnore, setLatency, setMonitor, setParent, setRequestHeaders, setResponseCode, setResponseCodeOK, setResponseData, setResponseData, setResponseData, setResponseHeaders, setResponseMessage, setResponseMessageOK, setResponseOK, setResultFileName, setSampleCount, setSampleLabel, setSamplerData, setSaveConfig, setSentBytes, setStampAndTime, setStartNextThreadLoop, setStartTime, setStopTest, setStopTestNow, setStopThread, setSuccessful, setTestLogicalAction, setThreadName, setTimeStamp, setURL, storeSubResult, toStringpublic HTTPSampleResult()
public HTTPSampleResult(long elapsed)
public HTTPSampleResult(HTTPSampleResult res)
res - existing sample resultpublic void setHTTPMethod(String method)
public String getHTTPMethod()
public void setRedirectLocation(String redirectLocation)
public String getRedirectLocation()
public boolean isRedirect()
public String getSamplerData()
getSamplerData in class SampleResultpublic String getCookies()
public void setCookies(String string)
string - representing the cookiespublic String getQueryString()
public void setQueryString(String string)
string - the query stringpublic String getDataEncodingWithDefault(String defaultEncoding)
getDataEncodingWithDefault in class SampleResultdefaultEncoding - Default encoding used if there is no data encodingpublic String getDataEncodingNoDefault()
getDataEncodingNoDefault in class SampleResultpublic void setResponseNoContent()
public List<String> getSearchableTokens() throws Exception
SearchablegetSearchableTokens in interface SearchablegetSearchableTokens in class SampleResultException - when something fails while getting the searchable tokensCopyright © 1998-2019 Apache Software Foundation. All Rights Reserved.