Interface ClientBuilderConfiguration
public interface ClientBuilderConfiguration
Represents the
ClientBuilder configuration for configuring an
ClientHttpEngine.- Since:
- 6.2.11
- Author:
- James R. Perkins
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ConfigurationReturns theConfigurationfor theConfigurable.getConfiguration().longconnectionIdleTime(TimeUnit unit) Get the connections time to live, if set.longconnectionTimeout(TimeUnit unit) Returns the connection timeout converted in the time unit provided.Returns the default proxy host name if configured.intReturns the default proxy port if configured.The default proxy scheme, the default ishttp.Returns theExecutorServiceassociated with theClientBuilder.executorService(ExecutorService).booleanIndicates whether cookie management should be used or not.booleanIndicates if redirects should be followed.longreadTimeout(TimeUnit unit) Returns the read timeout converted in the time unit provided.Returns theScheduledExecutorServiceassociated with theClientBuilder.scheduledExecutorService(ScheduledExecutorService).Returns a list of SNI host names for authentication.
-
Method Details
-
connectionIdleTime
Get the connections time to live, if set.- Parameters:
unit- the unit used to convert the time- Returns:
- the time to live or
-1if not set
-
sniHostNames
Returns a list of SNI host names for authentication.- Returns:
- the SNI host names or an empty list
-
defaultProxyHostname
String defaultProxyHostname()Returns the default proxy host name if configured.- Returns:
- the default proxy host name or
null
-
defaultProxyPort
int defaultProxyPort()Returns the default proxy port if configured.- Returns:
- the default proxy port or
-1if not set
-
defaultProxyScheme
String defaultProxyScheme()The default proxy scheme, the default ishttp.- Returns:
- the proxy scheme
-
isCookieManagementEnabled
boolean isCookieManagementEnabled()Indicates whether cookie management should be used or not.- Returns:
trueif cookie management should be used
-
sslContext
SSLContext sslContext()- Returns:
- the
SSLContextornullif one was not configured
-
readTimeout
Returns the read timeout converted in the time unit provided.- Parameters:
unit- the time unit used to convert the read timeout- Returns:
- the read timeout or
-1if no read timeout configured
-
connectionTimeout
Returns the connection timeout converted in the time unit provided.- Parameters:
unit- the time unit used to convert the connection timeout- Returns:
- the connection timeout or
-1if no connection timeout configured
-
isFollowRedirects
boolean isFollowRedirects()Indicates if redirects should be followed.- Returns:
trueif redirects should be followed, otherwisefalse
-
executorService
Optional<ExecutorService> executorService()Returns theExecutorServiceassociated with theClientBuilder.executorService(ExecutorService).- Returns:
- the executor service or
nullif one was not configured
-
scheduledExecutorService
Optional<ScheduledExecutorService> scheduledExecutorService()Returns theScheduledExecutorServiceassociated with theClientBuilder.scheduledExecutorService(ScheduledExecutorService).- Returns:
- the scheduled executor service or
nullif one was not configured
-
configuration
jakarta.ws.rs.core.Configuration configuration()Returns theConfigurationfor theConfigurable.getConfiguration().- Returns:
- the configuration
-