Package io.openlineage.client.transports
Class HttpConfig
- java.lang.Object
-
- io.openlineage.client.transports.HttpConfig
-
- All Implemented Interfaces:
MergeConfig<HttpConfig>
,TransportConfig
public final class HttpConfig extends java.lang.Object implements TransportConfig, MergeConfig<HttpConfig>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HttpConfig.Compression
-
Constructor Summary
Constructors Constructor Description HttpConfig()
HttpConfig(java.net.URI url, java.lang.String endpoint, java.lang.Double timeout, java.lang.Integer timeoutInMillis, TokenProvider auth, java.util.Map<java.lang.String,java.lang.String> urlParams, java.util.Map<java.lang.String,java.lang.String> headers, HttpConfig.Compression compression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TokenProvider
getAuth()
HttpConfig.Compression
getCompression()
java.lang.String
getEndpoint()
java.util.Map<java.lang.String,java.lang.String>
getHeaders()
java.lang.Double
getTimeout()
java.lang.Integer
getTimeoutInMillis()
java.net.URI
getUrl()
java.util.Map<java.lang.String,java.lang.String>
getUrlParams()
HttpConfig
mergeWithNonNull(HttpConfig other)
Method to create new config class based on current instance and non-null argument value.void
setAuth(TokenProvider auth)
void
setCompression(HttpConfig.Compression compression)
void
setEndpoint(java.lang.String endpoint)
void
setHeaders(java.util.Map<java.lang.String,java.lang.String> headers)
void
setTimeout(java.lang.Double timeout)
void
setTimeoutInMillis(java.lang.Integer timeoutInMillis)
void
setUrl(java.net.URI url)
void
setUrlParams(java.util.Map<java.lang.String,java.lang.String> urlParams)
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.openlineage.client.MergeConfig
mergePropertyWith, mergePropertyWith, mergeWith, mergeWithDefaultValue
-
-
-
-
Constructor Detail
-
HttpConfig
public HttpConfig()
-
HttpConfig
public HttpConfig(java.net.URI url, @Nullable java.lang.String endpoint, @Nullable java.lang.Double timeout, @Nullable java.lang.Integer timeoutInMillis, @Nullable TokenProvider auth, @Nullable java.util.Map<java.lang.String,java.lang.String> urlParams, @Nullable java.util.Map<java.lang.String,java.lang.String> headers, @Nullable HttpConfig.Compression compression)
-
-
Method Detail
-
mergeWithNonNull
public HttpConfig mergeWithNonNull(HttpConfig 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 interfaceMergeConfig<HttpConfig>
- Parameters:
other
- overwrite value- Returns:
- merged config entry
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getUrl
public java.net.URI getUrl()
-
setUrl
public void setUrl(java.net.URI url)
-
getEndpoint
@Nullable public java.lang.String getEndpoint()
-
setEndpoint
public void setEndpoint(@Nullable java.lang.String endpoint)
-
getTimeout
@Nullable public java.lang.Double getTimeout()
-
setTimeout
public void setTimeout(@Nullable java.lang.Double timeout)
-
getTimeoutInMillis
@Nullable public java.lang.Integer getTimeoutInMillis()
-
setTimeoutInMillis
public void setTimeoutInMillis(@Nullable java.lang.Integer timeoutInMillis)
-
getAuth
@Nullable public TokenProvider getAuth()
-
setAuth
public void setAuth(@Nullable TokenProvider auth)
-
getUrlParams
@Nullable public java.util.Map<java.lang.String,java.lang.String> getUrlParams()
-
setUrlParams
public void setUrlParams(@Nullable java.util.Map<java.lang.String,java.lang.String> urlParams)
-
getHeaders
@Nullable public java.util.Map<java.lang.String,java.lang.String> getHeaders()
-
setHeaders
public void setHeaders(@Nullable java.util.Map<java.lang.String,java.lang.String> headers)
-
getCompression
@Nullable public HttpConfig.Compression getCompression()
-
setCompression
public void setCompression(@Nullable HttpConfig.Compression compression)
-
-