Class HttpClientSettingsConfig

java.lang.Object
com.helger.httpclient.HttpClientSettingsConfig

public class HttpClientSettingsConfig extends Object
A helper class to configure HttpClientSettings using IConfig with standardized configuration property names.
Since:
10.0.0
Author:
Philip Helger
  • Method Details

    • assignConfigValues

      public static final void assignConfigValues(@Nonnull HttpClientSettings aHCS, @Nonnull com.helger.config.fallback.IConfigWithFallback aConfig, @Nonnull @Nonempty String... aPrefixes)
      Assign all settings of HttpClientSettings from configuration values. This includes:
      • http.useDNSClientCache - use the DNS client cache by default
      Parameters:
      aHCS - The HttpClientSettings to be configured. May not be null.
      aConfig - The IConfig object to used as the source of the values. May not be null.
      aPrefixes - The configuration prefixes to be used. If this value may neither be null nor empty, it will be used as the constant prefix.