Package org.keycloak.admin.client.spi
Class ResteasyClientClassicProvider
- java.lang.Object
-
- org.keycloak.admin.client.spi.ResteasyClientClassicProvider
-
- All Implemented Interfaces:
ResteasyClientProvider
public class ResteasyClientClassicProvider extends Object implements ResteasyClientProvider
An implementation ofResteasyClientProvider
based on RESTEasy classic.
-
-
Constructor Summary
Constructors Constructor Description ResteasyClientClassicProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.client.Client
newRestEasyClient(Object customJacksonProvider, SSLContext sslContext, boolean disableTrustManager)
Creates a newClient
.<R> R
targetProxy(javax.ws.rs.client.WebTarget client, Class<R> targetClass)
Creates a implementation-specific proxy for a giventargetClass
.
-
-
-
Method Detail
-
newRestEasyClient
public javax.ws.rs.client.Client newRestEasyClient(Object customJacksonProvider, SSLContext sslContext, boolean disableTrustManager)
Description copied from interface:ResteasyClientProvider
Creates a newClient
.- Specified by:
newRestEasyClient
in interfaceResteasyClientProvider
- Parameters:
customJacksonProvider
- aMessageBodyReader
and/orMessageBodyWriter
instance.sslContext
- an optionalSSLContext
disableTrustManager
- if the client should not validate the server certificates when using TLS- Returns:
-
targetProxy
public <R> R targetProxy(javax.ws.rs.client.WebTarget client, Class<R> targetClass)
Description copied from interface:ResteasyClientProvider
Creates a implementation-specific proxy for a giventargetClass
.- Specified by:
targetProxy
in interfaceResteasyClientProvider
- Parameters:
client
- theWebTarget
instancetargetClass
- the JAX-RS client resource class- Returns:
- an instance of
targetClass
-
-