org.apache.jmeter.protocol.http.control
Class CacheManager
- Cloneable, Serializable, ConfigElement, Serializable, TestElement, TestListener
public class CacheManager
Handles HTTP Caching
addProperty , addTestElement , canRemove , clear , clearTemporary , clone , emptyTemporary , equals , getComment , getName , getProperty , getPropertyAsBoolean , getPropertyAsBoolean , getPropertyAsDouble , getPropertyAsFloat , getPropertyAsInt , getPropertyAsInt , getPropertyAsLong , getPropertyAsString , getPropertyAsString , getThreadContext , getThreadName , hashCode , isEnabled , isRunningVersion , isTemporary , logProperties , mergeIn , propertyIterator , recoverRunningVersion , removeProperty , setComment , setName , setProperty , setProperty , setProperty , setProperty , setProperty , setProperty , setProperty , setRunningVersion , setTemporary , setThreadContext , setThreadName , traverse , traverseCollection , traverseMap , traverseProperty |
CLEAR
public static final String CLEAR
CacheManager
public CacheManager()
getClearEachIteration
public boolean getClearEachIteration()
saveDetails
public void saveDetails(HttpMethod method,
SampleResult res)
throws URIException
Save the Last-Modified and Etag headers if the result is cacheable.
saveDetails
public void saveDetails(URLConnection conn,
SampleResult res)
Save the Last-Modified and Etag headers if the result is cacheable.
conn
- connectionres
- result
setClearEachIteration
public void setClearEachIteration(boolean clear)
setHeaders
public void setHeaders(HttpURLConnection conn,
URL url)
Check the cache, and if there is a match, set the headers:
If-Modified-Since
If-None-Match
conn
- where to set the headersurl
- URL to look up in cache
setHeaders
public void setHeaders(URL url,
HttpMethod method)
Check the cache, and if there is a match, set the headers:
If-Modified-Since
If-None-Match
url
- URL to look up in cachemethod
- where to set the headers
Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.