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

public abstract class HTTPHCAbstractImpl extends HTTPAbstractImpl
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 Details

    • PROXY_SCHEME

      protected static final String PROXY_SCHEME
    • PROXY_HOST

      protected static final String PROXY_HOST
    • NONPROXY_HOSTS

      protected static final String NONPROXY_HOSTS
    • PROXY_PORT

      protected static final int PROXY_PORT
    • PROXY_DEFINED

      protected static final boolean PROXY_DEFINED
    • PROXY_USER

      protected static final String PROXY_USER
    • PROXY_PASS

      protected static final String PROXY_PASS
    • PROXY_DOMAIN

      protected static final String PROXY_DOMAIN
    • localAddress

      protected static final InetAddress localAddress
    • LOCALHOST

      protected static final String LOCALHOST
    • nonProxyHostFull

      protected static final Set<String> nonProxyHostFull
    • nonProxyHostSuffix

      protected static final List<String> nonProxyHostSuffix
    • NON_PROXY_HOST_SUFFIX_SIZE

      protected static final int NON_PROXY_HOST_SUFFIX_SIZE
    • CPS_HTTP

      protected static final int CPS_HTTP
    • CPS_HTTPS

      @Deprecated protected static final int CPS_HTTPS
      Deprecated.
      Not used
    • USE_LOOPBACK

      protected static final boolean USE_LOOPBACK
    • HTTP_VERSION

      protected static final String HTTP_VERSION
    • SO_TIMEOUT

      protected static final int SO_TIMEOUT
    • RESET_STATE_ON_THREAD_GROUP_ITERATION

      protected static final boolean RESET_STATE_ON_THREAD_GROUP_ITERATION
      Reset HTTP State when starting a new Thread Group iteration
    • USE_CACHED_SSL_CONTEXT

      @Deprecated protected static final boolean USE_CACHED_SSL_CONTEXT
      Deprecated.
      use httpclient.reset_state_on_thread_group_iteration instead
      Control reuse of cached SSL Context in subsequent iterations
    • resetStateOnThreadGroupIteration

      protected static final ThreadLocal<Boolean> resetStateOnThreadGroupIteration
      Whether SSL State/Context should be reset Shared state for any HC based implementation, because SSL contexts are the same
  • Constructor Details

    • HTTPHCAbstractImpl

      protected HTTPHCAbstractImpl(HTTPSamplerBase testElement)
  • Method Details

    • isNonProxy

      protected static boolean isNonProxy(String host)
    • isPartialMatch

      protected static boolean isPartialMatch(String host)
    • isDynamicProxy

      protected boolean isDynamicProxy(String proxyHost, int proxyPort)
      Is a dynamic proxy defined?
      Parameters:
      proxyHost - the host to check
      proxyPort - the port to check
      Returns:
      true iff both ProxyPort and ProxyHost are defined.
    • isStaticProxy

      protected static boolean isStaticProxy(String host)
      Is a static proxy defined?
      Parameters:
      host - to check against non-proxy hosts
      Returns:
      true iff a static proxy has been defined.
    • isNullOrEmptyTrimmed

      protected static boolean isNullOrEmptyTrimmed(String value)
      Parameters:
      value - String value to test
      Returns:
      true if value is null or empty trimmed