Class RestClientBuilderImpl

java.lang.Object
io.quarkus.rest.client.reactive.runtime.RestClientBuilderImpl
All Implemented Interfaces:
jakarta.ws.rs.core.Configurable<org.eclipse.microprofile.rest.client.RestClientBuilder>, org.eclipse.microprofile.rest.client.RestClientBuilder, org.jboss.resteasy.reactive.client.impl.VertxRequestCustomizingClientBuilder<RestClientBuilderImpl>

public class RestClientBuilderImpl extends Object implements org.eclipse.microprofile.rest.client.RestClientBuilder, org.jboss.resteasy.reactive.client.impl.VertxRequestCustomizingClientBuilder<RestClientBuilderImpl>
Builder implementation for MicroProfile Rest Client
  • Constructor Details

    • RestClientBuilderImpl

      public RestClientBuilderImpl()
  • Method Details

    • baseUrl

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

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

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

      public RestClientBuilderImpl tlsConfiguration(io.quarkus.tls.TlsConfiguration tlsConfiguration)
    • sslContext

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

      public RestClientBuilderImpl verifyHost(boolean verifyHost)
    • trustStore

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

      public RestClientBuilderImpl trustStore(KeyStore trustStore, String trustStorePassword)
    • keyStore

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

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

      public RestClientBuilderImpl followRedirects(boolean follow)
      Specified by:
      followRedirects in interface org.eclipse.microprofile.rest.client.RestClientBuilder
    • proxyAddress

      public RestClientBuilderImpl proxyAddress(String proxyHost, int proxyPort)
      Specified by:
      proxyAddress in interface org.eclipse.microprofile.rest.client.RestClientBuilder
    • proxyPassword

      public RestClientBuilderImpl proxyPassword(String proxyPassword)
    • proxyUser

      public RestClientBuilderImpl proxyUser(String proxyUser)
    • nonProxyHosts

      public RestClientBuilderImpl nonProxyHosts(String nonProxyHosts)
    • proxyConnectTimeout

      public RestClientBuilderImpl proxyConnectTimeout(Duration proxyConnectTimeout)
    • proxyType

      public RestClientBuilderImpl proxyType(io.quarkus.proxy.ProxyType proxyType)
    • toVertxProxyType

      static io.vertx.core.net.ProxyType toVertxProxyType(io.quarkus.proxy.ProxyType type)
    • multipartPostEncoderMode

      public RestClientBuilderImpl multipartPostEncoderMode(String mode)
    • clientLogger

      public RestClientBuilderImpl clientLogger(org.jboss.resteasy.reactive.client.api.ClientLogger clientLogger)
    • loggingScope

      public RestClientBuilderImpl loggingScope(org.jboss.resteasy.reactive.client.api.LoggingScope loggingScope)
    • loggingBodyLimit

      public RestClientBuilderImpl loggingBodyLimit(Integer limit)
    • trustAll

      public RestClientBuilderImpl trustAll(boolean trustAll)
    • userAgent

      public RestClientBuilderImpl userAgent(String userAgent)
    • disableDefaultMapper

      public RestClientBuilderImpl disableDefaultMapper(Boolean disableDefaultMapper)
    • enableCompression

      public RestClientBuilderImpl enableCompression(boolean enableCompression)
    • httpClientOptions

      public RestClientBuilderImpl httpClientOptions(Class<? extends io.vertx.core.http.HttpClientOptions> httpClientOptionsClass)
      Specified by:
      httpClientOptions in interface org.jboss.resteasy.reactive.client.impl.VertxRequestCustomizingClientBuilder<RestClientBuilderImpl>
    • httpClientOptions

      public RestClientBuilderImpl httpClientOptions(io.vertx.core.http.HttpClientOptions httpClientOptions)
      Specified by:
      httpClientOptions in interface org.jboss.resteasy.reactive.client.impl.VertxRequestCustomizingClientBuilder<RestClientBuilderImpl>
    • clientOptionsCustomizer

      public RestClientBuilderImpl clientOptionsCustomizer(Consumer<io.vertx.core.http.HttpClientOptions> clientOptionsCustomizer)
    • httpClientOptionsCustomizer

      public RestClientBuilderImpl httpClientOptionsCustomizer(Consumer<io.vertx.core.http.HttpClientOptions> httpClientOptionsCustomizer)
      Specified by:
      httpClientOptionsCustomizer in interface org.jboss.resteasy.reactive.client.impl.VertxRequestCustomizingClientBuilder<RestClientBuilderImpl>
    • clientRequestCustomizer

      public RestClientBuilderImpl clientRequestCustomizer(Consumer<io.vertx.core.http.HttpClientRequest> clientRequestCustomizer)
    • httpClientRequestCustomizer

      public RestClientBuilderImpl httpClientRequestCustomizer(Consumer<io.vertx.core.http.HttpClientRequest> httpClientOptionsCustomizer)
      Specified by:
      httpClientRequestCustomizer in interface org.jboss.resteasy.reactive.client.impl.VertxRequestCustomizingClientBuilder<RestClientBuilderImpl>
    • executorService

      public RestClientBuilderImpl executorService(ExecutorService executor)
      Specified by:
      executorService in interface org.eclipse.microprofile.rest.client.RestClientBuilder
    • 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 RestClientBuilderImpl property(String name, Object value)
      Specified by:
      property in interface jakarta.ws.rs.core.Configurable<org.eclipse.microprofile.rest.client.RestClientBuilder>
    • register

      public RestClientBuilderImpl register(Class<?> componentClass)
      Specified by:
      register in interface jakarta.ws.rs.core.Configurable<org.eclipse.microprofile.rest.client.RestClientBuilder>
    • register

      public RestClientBuilderImpl register(Class<?> componentClass, int priority)
      Specified by:
      register in interface jakarta.ws.rs.core.Configurable<org.eclipse.microprofile.rest.client.RestClientBuilder>
    • register

      public RestClientBuilderImpl register(Class<?> componentClass, Class<?>... contracts)
      Specified by:
      register in interface jakarta.ws.rs.core.Configurable<org.eclipse.microprofile.rest.client.RestClientBuilder>
    • register

      public RestClientBuilderImpl register(Class<?> componentClass, Map<Class<?>,Integer> contracts)
      Specified by:
      register in interface jakarta.ws.rs.core.Configurable<org.eclipse.microprofile.rest.client.RestClientBuilder>
    • register

      public RestClientBuilderImpl register(Object component)
      Specified by:
      register in interface jakarta.ws.rs.core.Configurable<org.eclipse.microprofile.rest.client.RestClientBuilder>
    • register

      public RestClientBuilderImpl register(Object component, int priority)
      Specified by:
      register in interface jakarta.ws.rs.core.Configurable<org.eclipse.microprofile.rest.client.RestClientBuilder>
    • register

      public RestClientBuilderImpl register(Object component, Class<?>... contracts)
      Specified by:
      register in interface jakarta.ws.rs.core.Configurable<org.eclipse.microprofile.rest.client.RestClientBuilder>
    • register

      public RestClientBuilderImpl register(Object component, Map<Class<?>,Integer> contracts)
      Specified by:
      register in interface jakarta.ws.rs.core.Configurable<org.eclipse.microprofile.rest.client.RestClientBuilder>
    • baseUri

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

      public RestClientBuilderImpl queryParamStyle(org.eclipse.microprofile.rest.client.ext.QueryParamStyle style)
      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
    • 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