@Immutable public final class SMPClientConfiguration extends Object
peppol.smp.client.properties.pathsmp.client.properties.pathprivate-smp-client.properties in the root of
the classpathsmp-client.properties in the root of the
classpathNote: this class is also licensed under Apache 2 license, as it was not part of the original implementation
| Modifier and Type | Method and Description |
|---|---|
static com.helger.settings.exchange.configfile.ConfigFile |
getConfigFile() |
static org.apache.http.HttpHost |
getHttpProxy() |
static org.apache.http.auth.UsernamePasswordCredentials |
getHttpProxyCredentials() |
static String |
getTruststoreLocation() |
static String |
getTruststorePassword() |
static boolean |
isUseDNSClientCache()
Get the content of the property "http.useDNSClientCache" or
true if undefined. |
static boolean |
isUseProxySystemProperties()
Get the content of the property "http.useSystemProperties" or
false if undefined. |
@Nonnull public static com.helger.settings.exchange.configfile.ConfigFile getConfigFile()
@Nonnull public static String getTruststoreLocation()
truststore.location. If none is present
PeppolKeyStoreHelper.TRUSTSTORE_COMPLETE_CLASSPATH is
returned as a default.@Nonnull public static String getTruststorePassword()
truststore.password. If none is present
PeppolKeyStoreHelper.TRUSTSTORE_PASSWORD is returned as a
default.@Nullable public static org.apache.http.HttpHost getHttpProxy()
@Nullable public static org.apache.http.auth.UsernamePasswordCredentials getHttpProxyCredentials()
UsernamePasswordCredentials object to be used for proxy
server authentication.public static boolean isUseProxySystemProperties()
false if undefined.true if the SMP client proxy configuration should be
take from the system properties, or false if not. The
default behavior is to return false.public static boolean isUseDNSClientCache()
true if undefined.true if the SMP client should use DNS client caching
(default) or false if DNS caching should be disabled.
The default behavior is to return true.Copyright © 2015–2017 Philip Helger. All rights reserved.