public class AsyncClientBuilder extends ClientBuilder
Main entry point to the client API used to bootstrap Client instances that integrate with Quasar fibers.
JAXRS_DEFAULT_CLIENT_BUILDER_PROPERTY
Modifier | Constructor and Description |
---|---|
protected |
AsyncClientBuilder(ClientBuilder clientBuilder) |
Modifier and Type | Method and Description |
---|---|
Client |
build() |
boolean |
equals(Object obj) |
Configuration |
getConfiguration() |
int |
hashCode() |
ClientBuilder |
hostnameVerifier(HostnameVerifier verifier) |
ClientBuilder |
keyStore(KeyStore keyStore,
char[] password) |
ClientBuilder |
keyStore(KeyStore keyStore,
String password) |
static ClientBuilder |
newBuilder()
Create a new
ClientBuilder instance using the default client builder implementation class provided by the JAX-RS implementation provider. |
static Client |
newClient()
Create a new
Client instance using the default client builder implementation class provided by the JAX-RS implementation provider. |
static Client |
newClient(Configuration configuration)
Create a new custom-configured
Client instance using the default client builder implementation class provided by the JAX-RS implementation provider. |
ClientBuilder |
property(String name,
Object value) |
ClientBuilder |
register(Class<?> componentClass) |
ClientBuilder |
register(Class<?> componentClass,
Class<?>... contracts) |
ClientBuilder |
register(Class<?> componentClass,
int priority) |
ClientBuilder |
register(Class<?> componentClass,
Map<Class<?>,Integer> contracts) |
ClientBuilder |
register(Object component) |
ClientBuilder |
register(Object component,
Class<?>... contracts) |
ClientBuilder |
register(Object component,
int priority) |
ClientBuilder |
register(Object component,
Map<Class<?>,Integer> contracts) |
ClientBuilder |
sslContext(SSLContext sslContext) |
String |
toString() |
ClientBuilder |
trustStore(KeyStore trustStore) |
ClientBuilder |
withConfig(Configuration config) |
protected AsyncClientBuilder(ClientBuilder clientBuilder)
public static ClientBuilder newBuilder()
Create a new ClientBuilder
instance using the default client builder implementation class provided by the JAX-RS implementation provider.
public static Client newClient()
Create a new Client
instance using the default client builder implementation class provided by the JAX-RS implementation provider.
public static Client newClient(Configuration configuration)
Create a new custom-configured Client
instance using the default client builder implementation class provided by the JAX-RS implementation provider.
configuration
- data used to provide initial configuration for the new client instance.public Client build()
build
in class ClientBuilder
public ClientBuilder withConfig(Configuration config)
withConfig
in class ClientBuilder
public ClientBuilder sslContext(SSLContext sslContext)
sslContext
in class ClientBuilder
public ClientBuilder keyStore(KeyStore keyStore, char[] password)
keyStore
in class ClientBuilder
public ClientBuilder keyStore(KeyStore keyStore, String password)
keyStore
in class ClientBuilder
public ClientBuilder trustStore(KeyStore trustStore)
trustStore
in class ClientBuilder
public ClientBuilder hostnameVerifier(HostnameVerifier verifier)
hostnameVerifier
in class ClientBuilder
public ClientBuilder property(String name, Object value)
public ClientBuilder register(Class<?> componentClass)
public ClientBuilder register(Class<?> componentClass, int priority)
public ClientBuilder register(Class<?> componentClass, Class<?>... contracts)
public ClientBuilder register(Class<?> componentClass, Map<Class<?>,Integer> contracts)
public ClientBuilder register(Object component)
public ClientBuilder register(Object component, int priority)
public ClientBuilder register(Object component, Class<?>... contracts)
public ClientBuilder register(Object component, Map<Class<?>,Integer> contracts)
public Configuration getConfiguration()