Class ClientConfigurations
java.lang.Object
com.palantir.conjure.java.client.config.ClientConfigurations
Utilities for creating
ClientConfiguration instances.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA factory forTrustContextwhich allows to define how one will be created, based on implementer defined security configurations. -
Method Summary
Modifier and TypeMethodDescriptionstatic ProxySelectorcreateProxySelector(com.palantir.conjure.java.api.config.service.ProxyConfiguration proxyConfig) static ClientConfigurationof(com.palantir.conjure.java.api.config.service.ServiceConfiguration config) Creates a newClientConfigurationinstance from the givenServiceConfiguration, filling in empty/absent configuration with the defaults specified as constants in this class.static ClientConfigurationof(com.palantir.conjure.java.api.config.service.ServiceConfiguration config, ClientConfigurations.TrustContextFactory factory) Creates a newClientConfigurationinstance from the givenServiceConfigurationandClientConfigurations.TrustContextFactory, filling in empty/absent configuration with the defaults specified as constants in this class.static ClientConfigurationof(List<String> uris, SSLSocketFactory sslSocketFactory, X509TrustManager trustManager) Creates a newClientConfigurationinstance from the given SSL configuration and URIs, filling in all other configuration with the defaults specified as constants in this class.static ClientConfigurationof(List<String> uris, SSLSocketFactory sslSocketFactory, X509TrustManager trustManager, com.palantir.conjure.java.api.config.service.UserAgent userAgent) Creates a newClientConfigurationinstance from the given SSL configuration, URIs, and user agent, filling in all other configuration with the defaults specified as constants in this class.
-
Method Details
-
of
public static ClientConfiguration of(com.palantir.conjure.java.api.config.service.ServiceConfiguration config) Creates a newClientConfigurationinstance from the givenServiceConfiguration, filling in empty/absent configuration with the defaults specified as constants in this class. -
of
public static ClientConfiguration of(com.palantir.conjure.java.api.config.service.ServiceConfiguration config, ClientConfigurations.TrustContextFactory factory) Creates a newClientConfigurationinstance from the givenServiceConfigurationandClientConfigurations.TrustContextFactory, filling in empty/absent configuration with the defaults specified as constants in this class. -
of
public static ClientConfiguration of(List<String> uris, SSLSocketFactory sslSocketFactory, X509TrustManager trustManager) Creates a newClientConfigurationinstance from the given SSL configuration and URIs, filling in all other configuration with the defaults specified as constants in this class. -
of
public static ClientConfiguration of(List<String> uris, SSLSocketFactory sslSocketFactory, X509TrustManager trustManager, com.palantir.conjure.java.api.config.service.UserAgent userAgent) Creates a newClientConfigurationinstance from the given SSL configuration, URIs, and user agent, filling in all other configuration with the defaults specified as constants in this class. -
createProxySelector
public static ProxySelector createProxySelector(com.palantir.conjure.java.api.config.service.ProxyConfiguration proxyConfig)
-