/** * Sets the value of the encoding to be used for the content. * * @param charsetName the name of the encoding to be used */ public void setContentEncoding(String charsetName) { setProperty(CONTENT_ENCODING, charsetName); }
/** * set IP/address source type to use * * @param value type of the IP/address source */ public void setIpSourceType(int value) { setProperty(IP_SOURCE_TYPE, value, SOURCE_TYPE_DEFAULT); }
/** * set IP source to use - does not apply to Java HTTP implementation currently * * @param value IP source to use */ public void setIpSource(String value) { setProperty(IP_SOURCE, value, ""); }
/** * @param value Boolean that indicates body will be sent as is */ public void setPostBodyRaw(boolean value) { setProperty(POST_BODY_RAW, value, POST_BODY_RAW_DEFAULT); }
public void setImplementation(String value) { this.setProperty(IMPLEMENTATION, value); }
public void setConnectTimeout(String value) { setProperty(CONNECT_TIMEOUT, value, ""); }
public void setConcurrentDwn(boolean concurrentDwn) { setProperty(CONCURRENT_DWN, concurrentDwn, false); }
public void setConcurrentPool(String poolSize) { setProperty(CONCURRENT_POOL, poolSize, CONCURRENT_POOL_DEFAULT); }
public void setMonitor(boolean truth) { this.setProperty(MONITOR, truth); }
public void setMD5(boolean truth) { this.setProperty(MD5, truth, false); }
public void setProtocol(String value) { setProperty(PROTOCOL, value.toLowerCase(java.util.Locale.ENGLISH)); }
public void setUseKeepAlive(boolean value) { setProperty(new BooleanProperty(USE_KEEPALIVE, value)); }
public void setPort(int value) { setProperty(new IntegerProperty(PORT, value)); }
public final void setArguments(Arguments value) { setProperty(new TestElementProperty(ARGUMENTS, value)); }
public void setAutoRedirects(boolean value) { setProperty(new BooleanProperty(AUTO_REDIRECTS, value)); }
public void setDoMultipart(boolean value) { setProperty(new BooleanProperty(DO_MULTIPART_POST, value)); }
private void setCacheManagerProperty(CacheManager value) { setProperty(new TestElementProperty(CACHE_MANAGER, value)); }
public void setAuthManager(AuthManager value) { AuthManager mgr = getAuthManager(); if (mgr != null) { if(log.isWarnEnabled()) { log.warn("Existing AuthManager {} superseded by {}", mgr.getName(), value.getName()); } } setProperty(new TestElementProperty(AUTH_MANAGER, value)); }
public void setDNSResolver(DNSCacheManager cacheManager) { DNSCacheManager mgr = getDNSResolver(); if (mgr != null) { if(log.isWarnEnabled()) { log.warn("Existing DNSCacheManager {} superseded by {}", mgr.getName(), cacheManager.getName()); } } setProperty(new TestElementProperty(DNS_CACHE_MANAGER, cacheManager)); }
private void setHTTPFileArgs(HTTPFileArgs value) { if (value.getHTTPFileArgCount() > 0) { setProperty(new TestElementProperty(FILE_ARGS, value)); } else { removeProperty(FILE_ARGS); // no point saving an empty list } }