Class QuarkusRestClientBuilder

java.lang.Object
io.quarkus.restclient.runtime.QuarkusRestClientBuilder
All Implemented Interfaces:
jakarta.ws.rs.core.Configurable<org.eclipse.microprofile.rest.client.RestClientBuilder>, org.eclipse.microprofile.rest.client.RestClientBuilder

public class QuarkusRestClientBuilder extends Object implements org.eclipse.microprofile.rest.client.RestClientBuilder
This is mostly a copy from RestClientBuilderImpl. It is required to remove the reference to org.jboss.resteasy.cdi.CdiInjectorFactory so we don't require the RESTEasy CDI dependency.
  • Field Details

    • METHOD_INJECTION_FILTER

      public static final org.jboss.resteasy.microprofile.client.MethodInjectionFilter METHOD_INJECTION_FILTER
    • PROVIDER_FACTORY

      static org.jboss.resteasy.spi.ResteasyProviderFactory PROVIDER_FACTORY
  • Constructor Details

    • QuarkusRestClientBuilder

      public QuarkusRestClientBuilder()
  • Method Details

    • setProviderFactory

      public static void setProviderFactory(org.jboss.resteasy.spi.ResteasyProviderFactory providerFactory)
    • getConfigurationWrapper

      public jakarta.ws.rs.core.Configuration getConfigurationWrapper()
    • followRedirects

      public org.eclipse.microprofile.rest.client.RestClientBuilder followRedirects(boolean followRedirect)
      Specified by:
      followRedirects in interface org.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 interface org.eclipse.microprofile.rest.client.RestClientBuilder
    • header

      public org.eclipse.microprofile.rest.client.RestClientBuilder header(String name, Object value)
      Specified by:
      header in interface org.eclipse.microprofile.rest.client.RestClientBuilder
    • proxyAddress

      public org.eclipse.microprofile.rest.client.RestClientBuilder proxyAddress(String host, int port)
      Specified by:
      proxyAddress in interface org.eclipse.microprofile.rest.client.RestClientBuilder
    • baseUrl

      public org.eclipse.microprofile.rest.client.RestClientBuilder baseUrl(URL url)
      Specified by:
      baseUrl in interface org.eclipse.microprofile.rest.client.RestClientBuilder
    • baseUri

      public org.eclipse.microprofile.rest.client.RestClientBuilder baseUri(URI uri)
      Specified by:
      baseUri in interface org.eclipse.microprofile.rest.client.RestClientBuilder
    • connectTimeout

      public org.eclipse.microprofile.rest.client.RestClientBuilder connectTimeout(long l, TimeUnit timeUnit)
      Specified by:
      connectTimeout in interface org.eclipse.microprofile.rest.client.RestClientBuilder
    • readTimeout

      public org.eclipse.microprofile.rest.client.RestClientBuilder readTimeout(long time, TimeUnit timeUnit)
      Specified by:
      readTimeout in interface org.eclipse.microprofile.rest.client.RestClientBuilder
    • sslContext

      public org.eclipse.microprofile.rest.client.RestClientBuilder sslContext(SSLContext sslContext)
      Specified by:
      sslContext in interface org.eclipse.microprofile.rest.client.RestClientBuilder
    • trustStore

      public org.eclipse.microprofile.rest.client.RestClientBuilder trustStore(KeyStore trustStore)
      Specified by:
      trustStore in interface org.eclipse.microprofile.rest.client.RestClientBuilder
    • keyStore

      public org.eclipse.microprofile.rest.client.RestClientBuilder keyStore(KeyStore keyStore, String keystorePassword)
      Specified by:
      keyStore in interface org.eclipse.microprofile.rest.client.RestClientBuilder
    • hostnameVerifier

      public org.eclipse.microprofile.rest.client.RestClientBuilder hostnameVerifier(HostnameVerifier hostnameVerifier)
      Specified by:
      hostnameVerifier in interface org.eclipse.microprofile.rest.client.RestClientBuilder
    • executorService

      public org.eclipse.microprofile.rest.client.RestClientBuilder executorService(ExecutorService executor)
      Specified by:
      executorService in interface org.eclipse.microprofile.rest.client.RestClientBuilder
    • build

      public <T> T build(Class<T> aClass, org.jboss.resteasy.client.jaxrs.ClientHttpEngine httpEngine) throws IllegalStateException, org.eclipse.microprofile.rest.client.RestClientDefinitionException
      Throws:
      IllegalStateException
      org.eclipse.microprofile.rest.client.RestClientDefinitionException
    • build

      public <T> T build(Class<T> aClass) throws IllegalStateException, org.eclipse.microprofile.rest.client.RestClientDefinitionException
      Specified by:
      build in interface org.eclipse.microprofile.rest.client.RestClientBuilder
      Throws:
      IllegalStateException
      org.eclipse.microprofile.rest.client.RestClientDefinitionException
    • getConfiguration

      public jakarta.ws.rs.core.Configuration getConfiguration()
      Specified by:
      getConfiguration in interface jakarta.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 interface jakarta.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 interface jakarta.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 interface jakarta.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 interface jakarta.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 interface jakarta.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 interface jakarta.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 interface jakarta.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 interface jakarta.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 interface jakarta.ws.rs.core.Configurable<org.eclipse.microprofile.rest.client.RestClientBuilder>
    • getLocalProviderInstances

      public Set<Object> getLocalProviderInstances()
    • registerLocalProviderInstance

      public void registerLocalProviderInstance(Object provider, Map<Class<?>,Integer> contracts)
    • getBuilderDelegate

      org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder getBuilderDelegate()