Class HTTPHCAbstractImpl
java.lang.Object
org.apache.jmeter.protocol.http.sampler.HTTPAbstractImpl
org.apache.jmeter.protocol.http.sampler.HTTPHCAbstractImpl
- All Implemented Interfaces:
- HTTPConstantsInterface,- Interruptible
- Direct Known Subclasses:
- HTTPHC4Impl
Common parent class for HttpClient implementations.
 Includes system property settings that are handled internally by the Java HTTP implementation,
 but which need to be explicitly configured in HttpClient implementations.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected static final intprotected static final intDeprecated.Not usedprotected static final Stringprotected static final InetAddressprotected static final Stringprotected static final intprotected static final Stringprotected static final booleanprotected static final Stringprotected static final Stringprotected static final Stringprotected static final intprotected static final Stringprotected static final Stringprotected static final booleanReset HTTP State when starting a new Thread Group iterationprotected static final ThreadLocal<Boolean>Whether SSL State/Context should be reset Shared state for any HC based implementation, because SSL contexts are the sameprotected static final intprotected static final booleanDeprecated.use httpclient.reset_state_on_thread_group_iteration insteadprotected static final booleanFields inherited from class org.apache.jmeter.protocol.http.sampler.HTTPAbstractImplADD_CONTENT_TYPE_TO_POST_IF_MISSING, ALL_EXCEPT_COOKIE, ONLY_COOKIE, testElementFields inherited from interface org.apache.jmeter.protocol.http.util.HTTPConstantsInterfaceAPPLICATION_X_WWW_FORM_URLENCODED, CACHE_CONTROL, CONNECT, CONNECTION_CLOSE, COPY, DATE, DEFAULT_HTTP_PORT, DEFAULT_HTTP_PORT_STRING, DEFAULT_HTTPS_PORT, DEFAULT_HTTPS_PORT_STRING, DELETE, ENCODING_BROTLI, ENCODING_DEFLATE, ENCODING_GZIP, ETAG, EXPIRES, GET, HEAD, HEADER_AUTHORIZATION, HEADER_CONNECTION, HEADER_CONTENT_DISPOSITION, HEADER_CONTENT_ENCODING, HEADER_CONTENT_LENGTH, HEADER_CONTENT_TYPE, HEADER_COOKIE, HEADER_COOKIE_IN_REQUEST, HEADER_HOST, HEADER_LOCAL_ADDRESS, HEADER_LOCATION, HEADER_SET_COOKIE, HTTP_1_1, IF_MODIFIED_SINCE, IF_NONE_MATCH, KEEP_ALIVE, LAST_MODIFIED, LOCK, MKCALENDAR, MKCOL, MOVE, MULTIPART_FORM_DATA, OPTIONS, PATCH, POST, PROPFIND, PROPPATCH, PROTOCOL_HTTP, PROTOCOL_HTTPS, PUT, REPORT, SC_MOVED_PERMANENTLY, SC_MOVED_TEMPORARILY, SC_PERMANENT_REDIRECT, SC_SEE_OTHER, SC_TEMPORARY_REDIRECT, SEARCH, TRACE, TRANSFER_ENCODING, UNLOCK, VARY
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanisDynamicProxy(String proxyHost, int proxyPort) Is a dynamic proxy defined?protected static booleanisNonProxy(String host) protected static booleanisNullOrEmptyTrimmed(String value) protected static booleanisPartialMatch(String host) protected static booleanisStaticProxy(String host) Is a static proxy defined?Methods inherited from class org.apache.jmeter.protocol.http.sampler.HTTPAbstractImplconfigureSampleLabel, errorResult, getArguments, getAuthManager, getAutoRedirects, getCacheManager, getConnectTimeout, getContentEncoding, getCookieManager, getDoBrowserCompatibleMultipart, getHeaderManager, getHTTPFiles, getIpSource, getIpSourceAddress, getProxyHost, getProxyPass, getProxyPortInt, getProxyScheme, getProxyUser, getResponseTimeout, getSendFileAsPostBody, getSendParameterValuesAsPostBody, getUseKeepAlive, getUseMultipart, getUseMultipartForPost, hasArguments, isMonitor, isSuccessCode, notifyFirstSampleAfterLoopRestart, notifySSLContextWasReset, readResponse, readResponse, readResponse, readResponse, resultProcessing, sample, setUseKeepAlive, threadFinished, updateSampleResultForResourceInCacheMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jmeter.samplers.Interruptibleinterrupt
- 
Field Details- 
PROXY_SCHEME
- 
PROXY_HOST
- 
NONPROXY_HOSTS
- 
PROXY_PORTprotected static final int PROXY_PORT
- 
PROXY_DEFINEDprotected static final boolean PROXY_DEFINED
- 
PROXY_USER
- 
PROXY_PASS
- 
PROXY_DOMAIN
- 
localAddress
- 
LOCALHOST
- 
nonProxyHostFull
- 
nonProxyHostSuffix
- 
NON_PROXY_HOST_SUFFIX_SIZEprotected static final int NON_PROXY_HOST_SUFFIX_SIZE
- 
CPS_HTTPprotected static final int CPS_HTTP
- 
CPS_HTTPSDeprecated.Not used
- 
USE_LOOPBACKprotected static final boolean USE_LOOPBACK
- 
HTTP_VERSION
- 
SO_TIMEOUTprotected static final int SO_TIMEOUT
- 
RESET_STATE_ON_THREAD_GROUP_ITERATIONprotected static final boolean RESET_STATE_ON_THREAD_GROUP_ITERATIONReset HTTP State when starting a new Thread Group iteration
- 
USE_CACHED_SSL_CONTEXTDeprecated.use httpclient.reset_state_on_thread_group_iteration insteadControl reuse of cached SSL Context in subsequent iterations
- 
resetStateOnThreadGroupIterationWhether SSL State/Context should be reset Shared state for any HC based implementation, because SSL contexts are the same
 
- 
- 
Constructor Details- 
HTTPHCAbstractImpl
 
- 
- 
Method Details- 
isNonProxy
- 
isPartialMatch
- 
isDynamicProxyIs a dynamic proxy defined?- Parameters:
- proxyHost- the host to check
- proxyPort- the port to check
- Returns:
- trueiff both ProxyPort and ProxyHost are defined.
 
- 
isStaticProxyIs a static proxy defined?- Parameters:
- host- to check against non-proxy hosts
- Returns:
- trueiff a static proxy has been defined.
 
- 
isNullOrEmptyTrimmed- Parameters:
- value- String value to test
- Returns:
- true if value is null or empty trimmed
 
 
-