public final class ApiBuilderHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addProxySettings(String proxyHost,
Integer proxyPort,
String proxyUser,
String proxyPass,
okhttp3.OkHttpClient.Builder builder)
Check the Proxy settings (host,port, username and password)
and adds the ProxyConfiguration to the
OkHttpClient.Builder
if at least a Proxy Port is found |
static feign.Retryer |
createRetryer(boolean isEnableRetrying)
Creates a
Retryer depending on the configuration param |
static void |
customSsl(com.licensespring.internal.config.SslConfig sslConfig,
okhttp3.OkHttpClient.Builder builder)
Changes the default SSL setting on the underlying http client
Used for corner cases, like using IntellijIdea custom certificates
|
static void |
disableSsl(okhttp3.OkHttpClient.Builder builder)
Disables SSL checking when contacting LS servers
Used for corner cases where the root cert is missing
|
static void |
setTimeout(Long requestTimeout,
okhttp3.OkHttpClient.Builder builder)
Adds the timeout for read/write/connect for OkHttpClientBuilder
|
public static feign.Retryer createRetryer(boolean isEnableRetrying)
Retryer depending on the configuration paramisEnableRetrying - configuration field if retrying is enabledpublic static void setTimeout(Long requestTimeout, okhttp3.OkHttpClient.Builder builder)
requestTimeout - duration for the request timeout, in secondsbuilder - httpClient builder for adding proxy settingspublic static void addProxySettings(String proxyHost, Integer proxyPort, String proxyUser, String proxyPass, okhttp3.OkHttpClient.Builder builder)
OkHttpClient.Builder
if at least a Proxy Port is foundproxyHost - host for proxy configurationproxyPort - port for proxy configurationproxyUser - username for proxy configurationproxyPass - password for proxy configurationbuilder - httpClient builder for adding proxy settingspublic static void disableSsl(okhttp3.OkHttpClient.Builder builder)
builder - httpClient builder for disabling ssl checkspublic static void customSsl(com.licensespring.internal.config.SslConfig sslConfig,
okhttp3.OkHttpClient.Builder builder)
sslConfig - custom SSL Config for overriding the http client ssl configbuilder - httpClient builder for disabling ssl checksCopyright © 2023 Cense Data Inc.. All rights reserved.