Class ProxyWebClientBuilder

java.lang.Object
javax.ws.rs.client.ClientBuilder
org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder
org.openremote.container.web.ExtensibleResteasyClientBuilder
org.openremote.container.web.ProxyWebClientBuilder
All Implemented Interfaces:
javax.ws.rs.core.Configurable<javax.ws.rs.client.ClientBuilder>

public class ProxyWebClientBuilder extends ExtensibleResteasyClientBuilder
This client will always set the configured Host header on all outgoing requests. We use this to emulate a reverse proxy that "preserves" the Host header. Using a request interceptor is the only reliable method for setting the Host header in Apache HttpClient.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.openremote.container.web.ExtensibleResteasyClientBuilder

    ExtensibleResteasyClientBuilder.VerifierWrapper

    Nested classes/interfaces inherited from class org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder

    org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder.HostnameVerificationPolicy
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final String
     
    protected final Integer
     

    Fields inherited from class org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder

    asyncExecutor, cleanupExecutor, clientKeyStore, clientPrivateKeyPassword, connectionCheckoutTimeoutMs, connectionPoolSize, connectionTTL, connectionTTLUnit, defaultProxy, disableTrustManager, establishConnectionTimeout, establishConnectionTimeoutUnits, httpEngine, maxPooledPerRoute, policy, properties, PROPERTY_PROXY_HOST, PROPERTY_PROXY_PORT, PROPERTY_PROXY_SCHEME, providerFactory, responseBufferSize, scheduledExecutorService, sniHostNames, socketTimeout, socketTimeoutUnits, sslContext, trustSelfSignedCertificates, truststore, verifier

    Fields inherited from class javax.ws.rs.client.ClientBuilder

    JAXRS_DEFAULT_CLIENT_BUILDER_PROPERTY
  • Constructor Summary

    Constructors
    Constructor
    Description
    ProxyWebClientBuilder(String proxyHost, Integer proxyPort)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.http.impl.client.HttpClientBuilder
    configure(org.apache.http.impl.client.HttpClientBuilder httpClientBuilder)
    You want to override this sometimes.

    Methods inherited from class org.openremote.container.web.ExtensibleResteasyClientBuilder

    build, buildOld, initDefaultEngine43

    Methods inherited from class org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder

    asyncExecutor, asyncExecutor, connectionCheckoutTimeout, connectionPoolSize, connectionTTL, connectTimeout, createResteasyClient, defaultProxy, defaultProxy, defaultProxy, disableTrustManager, establishConnectionTimeout, executorService, getConfiguration, getProviderFactory, hostnameVerification, hostnameVerifier, httpEngine, isTrustSelfSignedCertificates, keyStore, keyStore, maxPooledPerRoute, prepareSocketForSni, property, providerFactory, readTimeout, register, register, register, register, register, register, register, register, responseBufferSize, scheduledExecutorService, setIsTrustSelfSignedCertificates, sniHostNames, socketTimeout, sslContext, trustStore, useAsyncHttpEngine, withConfig

    Methods inherited from class javax.ws.rs.client.ClientBuilder

    newBuilder, newClient, newClient

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • proxyHost

      protected final String proxyHost
    • proxyPort

      protected final Integer proxyPort
  • Constructor Details

    • ProxyWebClientBuilder

      public ProxyWebClientBuilder(String proxyHost, Integer proxyPort)
  • Method Details