Package org.glassfish.jersey.client
Class JerseyClientBuilder
java.lang.Object
jakarta.ws.rs.client.ClientBuilder
org.glassfish.jersey.client.JerseyClientBuilder
- All Implemented Interfaces:
Configurable<ClientBuilder>
Jersey provider of
JAX-RS client builder
.- Author:
- Marek Potociar
-
Field Summary
Fields inherited from class jakarta.ws.rs.client.ClientBuilder
JAXRS_DEFAULT_CLIENT_BUILDER_PROPERTY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
connectTimeout
(long timeout, TimeUnit unit) static JerseyClient
Create a new custom-configuredJerseyClient
instance.static JerseyClient
createClient
(Configuration configuration) Create a new custom-configuredJerseyClient
instance.executorService
(ExecutorService executorService) hostnameVerifier
(HostnameVerifier hostnameVerifier) readTimeout
(long timeout, TimeUnit unit) scheduledExecutorService
(ScheduledExecutorService scheduledExecutorService) sslContext
(SSLContext sslContext) trustStore
(KeyStore trustStore) withConfig
(Configuration config) Methods inherited from class jakarta.ws.rs.client.ClientBuilder
keyStore, newBuilder, newClient, newClient
-
Constructor Details
-
JerseyClientBuilder
public JerseyClientBuilder()Create new Jersey client builder instance.
-
-
Method Details
-
createClient
Create a new custom-configuredJerseyClient
instance.- Returns:
- new configured Jersey client instance.
- Since:
- 2.5
-
createClient
Create a new custom-configuredJerseyClient
instance.- Parameters:
configuration
- data used to provide initial configuration for the new Jersey client instance.- Returns:
- new configured Jersey client instance.
- Since:
- 2.5
-
sslContext
- Specified by:
sslContext
in classClientBuilder
-
keyStore
- Specified by:
keyStore
in classClientBuilder
-
trustStore
- Specified by:
trustStore
in classClientBuilder
-
hostnameVerifier
- Specified by:
hostnameVerifier
in classClientBuilder
-
executorService
- Specified by:
executorService
in classClientBuilder
-
scheduledExecutorService
- Specified by:
scheduledExecutorService
in classClientBuilder
-
connectTimeout
- Specified by:
connectTimeout
in classClientBuilder
-
readTimeout
- Specified by:
readTimeout
in classClientBuilder
-
build
- Specified by:
build
in classClientBuilder
-
getConfiguration
-
property
-
register
-
register
-
register
-
register
-
register
-
register
-
register
-
register
-
withConfig
- Specified by:
withConfig
in classClientBuilder
-