Package org.keycloak.admin.client.spi
Interface ResteasyClientProvider
-
- All Known Implementing Classes:
ResteasyClientClassicProvider
public interface ResteasyClientProvider
An SPI for using the JAX-RS Client API regardless of the underlying stack.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.ws.rs.client.Client
newRestEasyClient(Object messageHandler, SSLContext sslContext, boolean disableTrustManager)
Creates a newClient
.<R> R
targetProxy(javax.ws.rs.client.WebTarget target, Class<R> targetClass)
Creates a implementation-specific proxy for a giventargetClass
.
-
-
-
Method Detail
-
newRestEasyClient
javax.ws.rs.client.Client newRestEasyClient(Object messageHandler, SSLContext sslContext, boolean disableTrustManager)
Creates a newClient
.- Parameters:
messageHandler
- aMessageBodyReader
and/orMessageBodyWriter
instance.sslContext
- an optionalSSLContext
disableTrustManager
- if the client should not validate the server certificates when using TLS- Returns:
-
targetProxy
<R> R targetProxy(javax.ws.rs.client.WebTarget target, Class<R> targetClass)
Creates a implementation-specific proxy for a giventargetClass
.- Parameters:
target
- theWebTarget
instancetargetClass
- the JAX-RS client resource class- Returns:
- an instance of
targetClass
-
-