Class HttpProxyConfig

java.lang.Object
io.openlineage.client.transports.HttpProxyConfig
All Implemented Interfaces:
MergeConfig<HttpProxyConfig>

public final class HttpProxyConfig extends Object implements MergeConfig<HttpProxyConfig>
Explicit proxy configuration for the HTTP transport.

When this is set the transport will route all outgoing requests through the specified proxy. Alternatively, JVM system properties (-Dhttps.proxyHost / -Dhttps.proxyPort, or their http.* equivalents) can be used without any config change; explicit config takes precedence.


 transport:
   type: http
   url: https://lineage-endpoint
   proxy:
     host: squid.internal
     port: 3128
 
  • Constructor Details

    • HttpProxyConfig

      public HttpProxyConfig()
    • HttpProxyConfig

      public HttpProxyConfig(@Nullable String host, @Nullable Integer port, @Nullable String nonProxyHosts)
      Creates a new HttpProxyConfig instance.
      Parameters:
      host - Proxy host name or IP address.
      port - Proxy port. Defaults to 8080 when unset.
      nonProxyHosts - Comma-separated list of hosts that bypass the proxy (passed to the route planner).
  • Method Details

    • mergeWithNonNull

      public HttpProxyConfig mergeWithNonNull(HttpProxyConfig other)
      Description copied from interface: MergeConfig
      Method to create new config class based on current instance and non-null argument value. In most cases, implementation needs to create a new instance of T, while merging all the properties.
      Specified by:
      mergeWithNonNull in interface MergeConfig<HttpProxyConfig>
      Parameters:
      other - overwrite value
      Returns:
      merged config entry
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getHost

      @Nullable public String getHost()
      Proxy host name or IP address.
    • setHost

      public void setHost(@Nullable String host)
      Proxy host name or IP address.
    • getPort

      @Nullable public Integer getPort()
      Proxy port. Defaults to 8080 when unset.
    • setPort

      public void setPort(@Nullable Integer port)
      Proxy port. Defaults to 8080 when unset.
    • getNonProxyHosts

      @Nullable public String getNonProxyHosts()
      Comma-separated list of hosts that bypass the proxy (passed to the route planner).
    • setNonProxyHosts

      public void setNonProxyHosts(@Nullable String nonProxyHosts)
      Comma-separated list of hosts that bypass the proxy (passed to the route planner).