Search in sources :

Example 6 with CacheManager

use of org.apache.jmeter.protocol.http.control.CacheManager in project jmeter by apache.

the class CacheManagerGui method modifyTestElement.

/* Implements JMeterGUIComponent.modifyTestElement(TestElement) */
@Override
public void modifyTestElement(TestElement element) {
    configureTestElement(element);
    final CacheManager cacheManager = (CacheManager) element;
    cacheManager.setClearEachIteration(clearEachIteration.isSelected());
    cacheManager.setUseExpires(useExpires.isSelected());
    try {
        cacheManager.setMaxSize(Integer.parseInt(maxCacheSize.getText()));
    } catch (NumberFormatException e) {
    // NOOP
    }
}
Also used : CacheManager(org.apache.jmeter.protocol.http.control.CacheManager)

Aggregations

CacheManager (org.apache.jmeter.protocol.http.control.CacheManager)6 IOException (java.io.IOException)2 UnsupportedEncodingException (java.io.UnsupportedEncodingException)1 BindException (java.net.BindException)1 HttpURLConnection (java.net.HttpURLConnection)1 InetAddress (java.net.InetAddress)1 URI (java.net.URI)1 URL (java.net.URL)1 PrivilegedActionException (java.security.PrivilegedActionException)1 Header (org.apache.http.Header)1 HttpConnectionMetrics (org.apache.http.HttpConnectionMetrics)1 HttpEntity (org.apache.http.HttpEntity)1 HttpException (org.apache.http.HttpException)1 HttpHost (org.apache.http.HttpHost)1 HttpRequest (org.apache.http.HttpRequest)1 StatusLine (org.apache.http.StatusLine)1 ClientProtocolException (org.apache.http.client.ClientProtocolException)1 CloseableHttpResponse (org.apache.http.client.methods.CloseableHttpResponse)1 HttpGet (org.apache.http.client.methods.HttpGet)1 HttpHead (org.apache.http.client.methods.HttpHead)1