|
Apache JMeter | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.config.ConfigTestElement
org.apache.jmeter.protocol.http.control.CacheManager
Handles HTTP Caching
| Field Summary | |
static String |
CLEAR
|
| Fields inherited from class org.apache.jmeter.config.ConfigTestElement |
PASSWORD, USERNAME |
| Fields inherited from interface org.apache.jmeter.testelement.TestElement |
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS |
| Constructor Summary | |
CacheManager()
|
|
| Method Summary | |
void |
clear()
Clear the TestElement of all data. |
boolean |
getClearEachIteration()
|
void |
saveDetails(org.apache.commons.httpclient.HttpMethod method,
SampleResult res)
Save the Last-Modified and Etag headers if the result is cacheable. |
void |
saveDetails(URLConnection conn,
SampleResult res)
Save the Last-Modified and Etag headers if the result is cacheable. |
void |
setClearEachIteration(boolean clear)
|
void |
setHeaders(HttpURLConnection conn,
URL url)
Check the cache, and if there is a match, set the headers: If-Modified-Since If-None-Match |
void |
setHeaders(URL url,
org.apache.commons.httpclient.HttpMethod method)
Check the cache, and if there is a match, set the headers: If-Modified-Since If-None-Match |
void |
testEnded()
Called once for all threads after the end of a test. |
void |
testEnded(String host)
Called once for all threads after the end of a test. |
void |
testIterationStart(LoopIterationEvent event)
Each time through a Thread Group's test script, an iteration event is fired for each thread. |
void |
testStarted()
Called just before the start of the test from the main engine thread. |
void |
testStarted(String host)
Called just before the start of the test from the main engine thread. |
| Methods inherited from class org.apache.jmeter.config.ConfigTestElement |
addConfigElement, addTestElement, expectsModification |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.jmeter.config.ConfigElement |
clone |
| Field Detail |
public static final String CLEAR
| Constructor Detail |
public CacheManager()
| Method Detail |
public void saveDetails(URLConnection conn,
SampleResult res)
conn - connectionres - result
public void saveDetails(org.apache.commons.httpclient.HttpMethod method,
SampleResult res)
throws org.apache.commons.httpclient.URIException
method - res - result
org.apache.commons.httpclient.URIException
public void setHeaders(URL url,
org.apache.commons.httpclient.HttpMethod method)
url - URL to look up in cachemethod - where to set the headers
public void setHeaders(HttpURLConnection conn,
URL url)
url - URL to look up in cacheconn - where to set the headerspublic boolean getClearEachIteration()
public void setClearEachIteration(boolean clear)
public void clear()
TestElement
clear in interface TestElementclear in class AbstractTestElementpublic void testStarted()
TestListenerCalled just before the start of the test from the main engine thread. This is before the test elements are cloned. Note that not all the test variables will have been set up at this point.
N.B. testStarted() and testEnded() are called from different threads.
testStarted in interface TestListenerStandardJMeterEngine.run()public void testEnded()
TestListenerCalled once for all threads after the end of a test. This will use the same element instances as at the start of the test.
N.B. testStarted() and testEnded() are called from different threads.
testEnded in interface TestListenerStandardJMeterEngine.stopTest()public void testStarted(String host)
TestListenerCalled just before the start of the test from the main engine thread. This is before the test elements are cloned. Note that not all the test variables will have been set up at this point.
N.B. testStarted() and testEnded() are called from different threads.
testStarted in interface TestListenerStandardJMeterEngine.run()public void testEnded(String host)
TestListenerCalled once for all threads after the end of a test. This will use the same element instances as at the start of the test.
N.B. testStarted() and testEnded() are called from different threads.
testEnded in interface TestListenerStandardJMeterEngine.stopTest()public void testIterationStart(LoopIterationEvent event)
TestListener
testIterationStart in interface TestListenerevent -
|
Apache JMeter | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||