Package io.openlineage.client.transports
Class HttpProxyConfig
java.lang.Object
io.openlineage.client.transports.HttpProxyConfig
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionHttpProxyConfig(String host, Integer port, String nonProxyHosts) Creates a newHttpProxyConfiginstance. -
Method Summary
Modifier and TypeMethodDescriptiongetHost()Proxy host name or IP address.Comma-separated list of hosts that bypass the proxy (passed to the route planner).getPort()Proxy port.mergeWithNonNull(HttpProxyConfig other) Method to create new config class based on current instance and non-null argument value.voidProxy host name or IP address.voidsetNonProxyHosts(String nonProxyHosts) Comma-separated list of hosts that bypass the proxy (passed to the route planner).voidProxy port.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.openlineage.client.MergeConfig
mergePropertyWith, mergePropertyWith, mergeWith, mergeWithDefaultValue
-
Constructor Details
-
HttpProxyConfig
public HttpProxyConfig() -
HttpProxyConfig
public HttpProxyConfig(@Nullable String host, @Nullable Integer port, @Nullable String nonProxyHosts) Creates a newHttpProxyConfiginstance.- 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
Description copied from interface:MergeConfigMethod 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:
mergeWithNonNullin interfaceMergeConfig<HttpProxyConfig>- Parameters:
other- overwrite value- Returns:
- merged config entry
-
toString
-
getHost
Proxy host name or IP address. -
setHost
Proxy host name or IP address. -
getPort
Proxy port. Defaults to 8080 when unset. -
setPort
Proxy port. Defaults to 8080 when unset. -
getNonProxyHosts
Comma-separated list of hosts that bypass the proxy (passed to the route planner). -
setNonProxyHosts
Comma-separated list of hosts that bypass the proxy (passed to the route planner).
-