Class RestClientBuilderImpl

  • All Implemented Interfaces:
    javax.ws.rs.core.Configurable<org.eclipse.microprofile.rest.client.RestClientBuilder>, org.eclipse.microprofile.rest.client.RestClientBuilder

    public class RestClientBuilderImpl
    extends Object
    implements org.eclipse.microprofile.rest.client.RestClientBuilder
    Builder implementation for MicroProfile Rest Client
    • Constructor Detail

      • RestClientBuilderImpl

        public RestClientBuilderImpl()
    • Method Detail

      • baseUrl

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

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

        public org.eclipse.microprofile.rest.client.RestClientBuilder readTimeout​(long timeout,
                                                                                  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
      • followRedirects

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

        public org.eclipse.microprofile.rest.client.RestClientBuilder proxyAddress​(String proxyHost,
                                                                                   int proxyPort)
        Specified by:
        proxyAddress 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
      • getConfiguration

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

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

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

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

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

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

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

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

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

        public org.eclipse.microprofile.rest.client.RestClientBuilder queryParamStyle​(org.eclipse.microprofile.rest.client.ext.QueryParamStyle style)
        Specified by:
        queryParamStyle 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