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:
HTTPHC3Impl, 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_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
    • nonProxyHostSuffixSize

      protected static final int nonProxyHostSuffixSize
    • CPS_HTTP

      protected static final int CPS_HTTP
    • CPS_HTTPS

      protected static final int CPS_HTTPS
    • USE_LOOPBACK

      protected static final boolean USE_LOOPBACK
    • HTTP_VERSION

      protected static final String HTTP_VERSION
    • SO_TIMEOUT

      protected static final int SO_TIMEOUT
    • USE_CACHED_SSL_CONTEXT

      protected static final boolean USE_CACHED_SSL_CONTEXT
  • 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