|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jmeter.samplers.SampleResult org.apache.jmeter.protocol.http.sampler.HTTPSampleResult
public class HTTPSampleResult
This is a specialisation of the SampleResult class for the HTTP protocol.
Field Summary |
---|
Fields inherited from class org.apache.jmeter.samplers.SampleResult |
---|
BINARY, DEFAULT_HTTP_ENCODING, 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 |
getDataEncodingWithDefault()
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 |
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HTTPSampleResult()
public HTTPSampleResult(long elapsed)
public HTTPSampleResult(HTTPSampleResult res)
res
- existing sample resultMethod Detail |
---|
public void setHTTPMethod(String method)
public String getHTTPMethod()
public void setRedirectLocation(String redirectLocation)
public String getRedirectLocation()
public boolean isRedirect()
public String getSamplerData()
getSamplerData
in class SampleResult
public String getCookies()
public void setCookies(String string)
string
- representing the cookiespublic String getQueryString()
public void setQueryString(String string)
string
- the query stringpublic String getDataEncodingWithDefault()
getDataEncodingWithDefault
in class SampleResult
public void setResponseNoContent()
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |