Class RestClientBuilderImpl
- java.lang.Object
-
- org.jboss.resteasy.microprofile.client.RestClientBuilderImpl
-
- All Implemented Interfaces:
javax.ws.rs.core.Configurable<org.eclipse.microprofile.rest.client.RestClientBuilder>
,org.eclipse.microprofile.rest.client.RestClientBuilder
public class RestClientBuilderImpl extends Object implements org.eclipse.microprofile.rest.client.RestClientBuilder
-
-
Field Summary
Fields Modifier and Type Field Description static ClientHeadersRequestFilter
HEADERS_REQUEST_FILTER
static MethodInjectionFilter
METHOD_INJECTION_FILTER
-
Constructor Summary
Constructors Constructor Description RestClientBuilderImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.microprofile.rest.client.RestClientBuilder
baseUri(URI uri)
org.eclipse.microprofile.rest.client.RestClientBuilder
baseUrl(URL url)
<T> T
build(Class<T> aClass)
org.eclipse.microprofile.rest.client.RestClientBuilder
connectTimeout(long l, TimeUnit timeUnit)
org.eclipse.microprofile.rest.client.RestClientBuilder
executorService(ExecutorService executor)
org.eclipse.microprofile.rest.client.RestClientBuilder
followRedirects(boolean followRedirect)
javax.ws.rs.core.Configuration
getConfiguration()
javax.ws.rs.core.Configuration
getConfigurationWrapper()
Set<Object>
getLocalProviderInstances()
org.eclipse.microprofile.rest.client.RestClientBuilder
hostnameVerifier(HostnameVerifier hostnameVerifier)
boolean
isFollowRedirects()
org.eclipse.microprofile.rest.client.RestClientBuilder
keyStore(KeyStore keyStore, String keystorePassword)
org.eclipse.microprofile.rest.client.RestClientBuilder
property(String name, Object value)
org.eclipse.microprofile.rest.client.RestClientBuilder
proxyAddress(String host, int port)
org.eclipse.microprofile.rest.client.RestClientBuilder
queryParamStyle(org.eclipse.microprofile.rest.client.ext.QueryParamStyle queryParamStyle)
org.eclipse.microprofile.rest.client.RestClientBuilder
readTimeout(long time, TimeUnit timeUnit)
org.eclipse.microprofile.rest.client.RestClientBuilder
register(Class<?> aClass)
org.eclipse.microprofile.rest.client.RestClientBuilder
register(Class<?> aClass, int i)
org.eclipse.microprofile.rest.client.RestClientBuilder
register(Class<?> aClass, Class<?>[] classes)
org.eclipse.microprofile.rest.client.RestClientBuilder
register(Class<?> aClass, Map<Class<?>,Integer> map)
org.eclipse.microprofile.rest.client.RestClientBuilder
register(Object o)
org.eclipse.microprofile.rest.client.RestClientBuilder
register(Object o, int i)
org.eclipse.microprofile.rest.client.RestClientBuilder
register(Object o, Class<?>[] classes)
org.eclipse.microprofile.rest.client.RestClientBuilder
register(Object o, Map<Class<?>,Integer> map)
void
registerLocalProviderInstance(Object provider, Map<Class<?>,Integer> contracts)
static void
setProviderFactory(ResteasyProviderFactory providerFactory)
org.eclipse.microprofile.rest.client.RestClientBuilder
sslContext(SSLContext sslContext)
org.eclipse.microprofile.rest.client.RestClientBuilder
trustStore(KeyStore trustStore)
-
-
-
Field Detail
-
METHOD_INJECTION_FILTER
public static final MethodInjectionFilter METHOD_INJECTION_FILTER
-
HEADERS_REQUEST_FILTER
public static final ClientHeadersRequestFilter HEADERS_REQUEST_FILTER
-
-
Method Detail
-
setProviderFactory
public static void setProviderFactory(ResteasyProviderFactory providerFactory)
-
getConfigurationWrapper
public javax.ws.rs.core.Configuration getConfigurationWrapper()
-
followRedirects
public org.eclipse.microprofile.rest.client.RestClientBuilder followRedirects(boolean followRedirect)
- Specified by:
followRedirects
in interfaceorg.eclipse.microprofile.rest.client.RestClientBuilder
-
isFollowRedirects
public boolean isFollowRedirects()
-
queryParamStyle
public org.eclipse.microprofile.rest.client.RestClientBuilder queryParamStyle(org.eclipse.microprofile.rest.client.ext.QueryParamStyle queryParamStyle)
- Specified by:
queryParamStyle
in interfaceorg.eclipse.microprofile.rest.client.RestClientBuilder
-
proxyAddress
public org.eclipse.microprofile.rest.client.RestClientBuilder proxyAddress(String host, int port)
- Specified by:
proxyAddress
in interfaceorg.eclipse.microprofile.rest.client.RestClientBuilder
-
baseUrl
public org.eclipse.microprofile.rest.client.RestClientBuilder baseUrl(URL url)
- Specified by:
baseUrl
in interfaceorg.eclipse.microprofile.rest.client.RestClientBuilder
-
baseUri
public org.eclipse.microprofile.rest.client.RestClientBuilder baseUri(URI uri)
- Specified by:
baseUri
in interfaceorg.eclipse.microprofile.rest.client.RestClientBuilder
-
connectTimeout
public org.eclipse.microprofile.rest.client.RestClientBuilder connectTimeout(long l, TimeUnit timeUnit)
- Specified by:
connectTimeout
in interfaceorg.eclipse.microprofile.rest.client.RestClientBuilder
-
readTimeout
public org.eclipse.microprofile.rest.client.RestClientBuilder readTimeout(long time, TimeUnit timeUnit)
- Specified by:
readTimeout
in interfaceorg.eclipse.microprofile.rest.client.RestClientBuilder
-
sslContext
public org.eclipse.microprofile.rest.client.RestClientBuilder sslContext(SSLContext sslContext)
- Specified by:
sslContext
in interfaceorg.eclipse.microprofile.rest.client.RestClientBuilder
-
trustStore
public org.eclipse.microprofile.rest.client.RestClientBuilder trustStore(KeyStore trustStore)
- Specified by:
trustStore
in interfaceorg.eclipse.microprofile.rest.client.RestClientBuilder
-
keyStore
public org.eclipse.microprofile.rest.client.RestClientBuilder keyStore(KeyStore keyStore, String keystorePassword)
- Specified by:
keyStore
in interfaceorg.eclipse.microprofile.rest.client.RestClientBuilder
-
hostnameVerifier
public org.eclipse.microprofile.rest.client.RestClientBuilder hostnameVerifier(HostnameVerifier hostnameVerifier)
- Specified by:
hostnameVerifier
in interfaceorg.eclipse.microprofile.rest.client.RestClientBuilder
-
executorService
public org.eclipse.microprofile.rest.client.RestClientBuilder executorService(ExecutorService executor)
- Specified by:
executorService
in interfaceorg.eclipse.microprofile.rest.client.RestClientBuilder
-
build
public <T> T build(Class<T> aClass) throws IllegalStateException, org.eclipse.microprofile.rest.client.RestClientDefinitionException
- Specified by:
build
in interfaceorg.eclipse.microprofile.rest.client.RestClientBuilder
- Throws:
IllegalStateException
org.eclipse.microprofile.rest.client.RestClientDefinitionException
-
getConfiguration
public javax.ws.rs.core.Configuration getConfiguration()
- Specified by:
getConfiguration
in interfacejavax.ws.rs.core.Configurable<org.eclipse.microprofile.rest.client.RestClientBuilder>
-
property
public org.eclipse.microprofile.rest.client.RestClientBuilder property(String name, Object value)
- Specified by:
property
in interfacejavax.ws.rs.core.Configurable<org.eclipse.microprofile.rest.client.RestClientBuilder>
-
register
public org.eclipse.microprofile.rest.client.RestClientBuilder register(Class<?> aClass)
- Specified by:
register
in interfacejavax.ws.rs.core.Configurable<org.eclipse.microprofile.rest.client.RestClientBuilder>
-
register
public org.eclipse.microprofile.rest.client.RestClientBuilder register(Class<?> aClass, int i)
- Specified by:
register
in interfacejavax.ws.rs.core.Configurable<org.eclipse.microprofile.rest.client.RestClientBuilder>
-
register
public org.eclipse.microprofile.rest.client.RestClientBuilder register(Class<?> aClass, Class<?>[] classes)
- Specified by:
register
in interfacejavax.ws.rs.core.Configurable<org.eclipse.microprofile.rest.client.RestClientBuilder>
-
register
public org.eclipse.microprofile.rest.client.RestClientBuilder register(Class<?> aClass, Map<Class<?>,Integer> map)
- Specified by:
register
in interfacejavax.ws.rs.core.Configurable<org.eclipse.microprofile.rest.client.RestClientBuilder>
-
register
public org.eclipse.microprofile.rest.client.RestClientBuilder register(Object o)
- Specified by:
register
in interfacejavax.ws.rs.core.Configurable<org.eclipse.microprofile.rest.client.RestClientBuilder>
-
register
public org.eclipse.microprofile.rest.client.RestClientBuilder register(Object o, int i)
- Specified by:
register
in interfacejavax.ws.rs.core.Configurable<org.eclipse.microprofile.rest.client.RestClientBuilder>
-
register
public org.eclipse.microprofile.rest.client.RestClientBuilder register(Object o, Class<?>[] classes)
- Specified by:
register
in interfacejavax.ws.rs.core.Configurable<org.eclipse.microprofile.rest.client.RestClientBuilder>
-
register
public org.eclipse.microprofile.rest.client.RestClientBuilder register(Object o, Map<Class<?>,Integer> map)
- Specified by:
register
in interfacejavax.ws.rs.core.Configurable<org.eclipse.microprofile.rest.client.RestClientBuilder>
-
-