public class JerseyClientBuilder extends ClientBuilder
JAX-RS client builder
.JAXRS_DEFAULT_CLIENT_BUILDER_PROPERTY
Constructor and Description |
---|
JerseyClientBuilder()
Create new Jersey client builder instance.
|
keyStore, newBuilder, newClient, newClient
public JerseyClientBuilder()
public static JerseyClient createClient()
JerseyClient
instance.public static JerseyClient createClient(Configuration configuration)
JerseyClient
instance.configuration
- data used to provide initial configuration for the new
Jersey client instance.public JerseyClientBuilder sslContext(SSLContext sslContext)
sslContext
in class ClientBuilder
public JerseyClientBuilder keyStore(KeyStore keyStore, char[] password)
keyStore
in class ClientBuilder
public JerseyClientBuilder trustStore(KeyStore trustStore)
trustStore
in class ClientBuilder
public JerseyClientBuilder hostnameVerifier(HostnameVerifier hostnameVerifier)
hostnameVerifier
in class ClientBuilder
public ClientBuilder executorService(ExecutorService executorService)
executorService
in class ClientBuilder
public ClientBuilder scheduledExecutorService(ScheduledExecutorService scheduledExecutorService)
scheduledExecutorService
in class ClientBuilder
public ClientBuilder connectTimeout(long timeout, TimeUnit unit)
connectTimeout
in class ClientBuilder
public ClientBuilder readTimeout(long timeout, TimeUnit unit)
readTimeout
in class ClientBuilder
public JerseyClient build()
build
in class ClientBuilder
public ClientConfig getConfiguration()
public JerseyClientBuilder property(String name, Object value)
public JerseyClientBuilder register(Class<?> componentClass)
public JerseyClientBuilder register(Class<?> componentClass, int priority)
public JerseyClientBuilder register(Class<?> componentClass, Class<?>... contracts)
public JerseyClientBuilder register(Class<?> componentClass, Map<Class<?>,Integer> contracts)
public JerseyClientBuilder register(Object component)
public JerseyClientBuilder register(Object component, int priority)
public JerseyClientBuilder register(Object component, Class<?>... contracts)
public JerseyClientBuilder register(Object component, Map<Class<?>,Integer> contracts)
public JerseyClientBuilder withConfig(Configuration config)
withConfig
in class ClientBuilder
Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.