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
Modifier and TypeMethodDescriptionjakarta.ws.rs.client.Client
newRestEasyClient
(Object messageHandler, SSLContext sslContext, boolean disableTrustManager) Creates a newClient
.<R> R
targetProxy
(jakarta.ws.rs.client.WebTarget target, Class<R> targetClass) Creates a implementation-specific proxy for a giventargetClass
.
-
Method Details
-
newRestEasyClient
jakarta.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
Creates a implementation-specific proxy for a giventargetClass
.- Parameters:
target
- theWebTarget
instancetargetClass
- the JAX-RS client resource class- Returns:
- an instance of
targetClass
-