Interface ClientBuilderConfiguration
public interface ClientBuilderConfiguration
Represents the
ClientBuilder
configuration for configuring an
ClientHttpEngine
.- Author:
- James R. Perkins
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Configuration
Returns theConfiguration
for theConfigurable.getConfiguration()
.long
connectionIdleTime
(TimeUnit unit) Get the connections time to live, if set.long
connectionTimeout
(TimeUnit unit) Returns the connection timeout converted in the time unit provided.Returns the default proxy host name if configured.int
Returns the default proxy port if configured.The default proxy scheme, the default ishttp
.Returns theExecutorService
associated with theClientBuilder.executorService(ExecutorService)
.boolean
Indicates whether cookie management should be used or not.boolean
Indicates if redirects should be followed.long
readTimeout
(TimeUnit unit) Returns the read timeout converted in the time unit provided.Returns theScheduledExecutorService
associated 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
-1
if not set
-
sniHostNames
-
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
-1
if 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:
true
if cookie management should be used
-
sslContext
SSLContext sslContext()- Returns:
- the
SSLContext
ornull
if 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
-1
if 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
-1
if no connection timeout configured
-
isFollowRedirects
boolean isFollowRedirects()Indicates if redirects should be followed.- Returns:
true
if redirects should be followed, otherwisefalse
-
executorService
Optional<ExecutorService> executorService()Returns theExecutorService
associated with theClientBuilder.executorService(ExecutorService)
.- Returns:
- the executor service or
null
if one was not configured
-
scheduledExecutorService
Optional<ScheduledExecutorService> scheduledExecutorService()Returns theScheduledExecutorService
associated with theClientBuilder.scheduledExecutorService(ScheduledExecutorService)
.- Returns:
- the scheduled executor service or
null
if one was not configured
-
configuration
jakarta.ws.rs.core.Configuration configuration()Returns theConfiguration
for theConfigurable.getConfiguration()
.- Returns:
- the configuration
-