Class HttpClientSettingsConfig.HttpClientConfig

java.lang.Object
com.helger.httpclient.HttpClientSettingsConfig.HttpClientConfig
Enclosing class:
HttpClientSettingsConfig

public static final class HttpClientSettingsConfig.HttpClientConfig extends Object
  • Constructor Details

    • HttpClientConfig

      public HttpClientConfig(@Nonnull com.helger.config.fallback.IConfigWithFallback aConfig, @Nonnull @Nonempty com.helger.collection.commons.ICommonsOrderedSet<String> aConfigPrefixes)
  • Method Details

    • getUseDNSClientCache

      @Nonnull public com.helger.base.state.ETriState getUseDNSClientCache(boolean bDefault)
    • getHttpProxyEnabled

      @Nonnull public com.helger.base.state.ETriState getHttpProxyEnabled(boolean bDefault)
    • getHttpProxyHost

      @Nullable public String getHttpProxyHost()
      Returns:
      The HttpProxy host to be used. May be null.
    • getHttpProxyPort

      @CheckForSigned public int getHttpProxyPort()
      Returns:
      The HTTP proxy port to be used, or 0 in case it is not found.
    • getHttpProxyObject

      @Nullable public org.apache.hc.core5.http.HttpHost getHttpProxyObject()
      Returns:
      The HttpProxy object to be used. This is only non-null if proxy host is non-null and proxy port returns a value > 0.
      See Also:
    • getHttpProxyUsername

      @Nullable public String getHttpProxyUsername()
      Returns:
      The HttpProxy user name to be used. May be null.
    • getHttpProxyPasswordCharArray

      @Nullable public char[] getHttpProxyPasswordCharArray()
      Returns:
      The HttpProxy password to be used. May be null.
    • getHttpProxyCredentials

      @Nullable public org.apache.hc.client5.http.auth.UsernamePasswordCredentials getHttpProxyCredentials()
      Returns:
      The UsernamePasswordCredentials object to be used for proxy server authentication or null if not username and password are configured.
      See Also:
    • getNonProxyHosts

      @Nullable public String getNonProxyHosts()
      Returns:
      A pipe separated list of non-proxy hosts. E.g. localhost|127.0.0.1. May be null.
    • getRetryCount

      @CheckForSigned public int getRetryCount()
    • getRetryInterval

      @Nullable public Duration getRetryInterval()
      Returns:
      The interval in which a retry should happen. Only relevant is retry count > 0.
      See Also:
    • getRetryAlways

      @Nonnull public com.helger.base.state.ETriState getRetryAlways(boolean bDefault)
    • getConnectionRequestTimeout

      @Nullable public org.apache.hc.core5.util.Timeout getConnectionRequestTimeout()
    • getConnectTimeout

      @Nullable public org.apache.hc.core5.util.Timeout getConnectTimeout()
    • getResponseTimeout

      @Nullable public org.apache.hc.core5.util.Timeout getResponseTimeout()
    • getUserAgent

      @Nullable public String getUserAgent()
    • getFollowRedirects

      @Nonnull public com.helger.base.state.ETriState getFollowRedirects(boolean bDefault)
    • getUseKeepAlive

      @Nonnull public com.helger.base.state.ETriState getUseKeepAlive(boolean bDefault)
    • getProtocolUpgradeEnabled

      @Nonnull public com.helger.base.state.ETriState getProtocolUpgradeEnabled(boolean bDefault)
      Get the configuration value on protocol upgrade is enabled or not.
      Parameters:
      bDefault - The default value to be used.
      Returns:
      Never null.
      Since:
      10.5.0
    • getDisableTlsChecks

      @Nonnull public com.helger.base.state.ETriState getDisableTlsChecks(boolean bDefault)
    • getDisableHostnameCheck

      @Nonnull public com.helger.base.state.ETriState getDisableHostnameCheck(boolean bDefault)
    • getDisableCertificateCheck

      @Nonnull public com.helger.base.state.ETriState getDisableCertificateCheck(boolean bDefault)