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 Type
    Method
    Description
    jakarta.ws.rs.client.Client
    newRestEasyClient(Object messageHandler, SSLContext sslContext, boolean disableTrustManager)
    Creates a new Client.
    <R> R
    targetProxy(jakarta.ws.rs.client.WebTarget target, Class<R> targetClass)
    Creates a implementation-specific proxy for a given targetClass.
  • Method Details

    • newRestEasyClient

      jakarta.ws.rs.client.Client newRestEasyClient(Object messageHandler, SSLContext sslContext, boolean disableTrustManager)
      Creates a new Client.
      Parameters:
      messageHandler - a MessageBodyReader and/or MessageBodyWriter instance.
      sslContext - an optional SSLContext
      disableTrustManager - if the client should not validate the server certificates when using TLS
      Returns:
    • targetProxy

      <R> R targetProxy(jakarta.ws.rs.client.WebTarget target, Class<R> targetClass)
      Creates a implementation-specific proxy for a given targetClass.
      Parameters:
      target - the WebTarget instance
      targetClass - the JAX-RS client resource class
      Returns:
      an instance of targetClass