Package com.helger.httpclient
Class HttpClientSettingsConfig
java.lang.Object
com.helger.httpclient.HttpClientSettingsConfig
A helper class to configure
HttpClientSettings using IConfig with standardized
configuration property names.- Since:
- 10.0.0
- Author:
- Philip Helger
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic final voidassignConfigValues(HttpClientSettings aHCS, com.helger.config.fallback.IConfigWithFallback aConfig, String... aPrefixes) Assign all settings ofHttpClientSettingsfrom configuration values.
-
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 ofHttpClientSettingsfrom configuration values. This includes:- http.useDNSClientCache - use the DNS client cache by default
- Parameters:
aHCS- TheHttpClientSettingsto be configured. May not benull.aConfig- TheIConfigobject to used as the source of the values. May not benull.aPrefixes- The configuration prefixes to be used. If this value may neither benullnor empty, it will be used as the constant prefix.
-