Package io.openlineage.client.transports
Class HttpConfig
- java.lang.Object
-
- io.openlineage.client.transports.HttpConfig
-
- All Implemented Interfaces:
TransportConfig
public final class HttpConfig extends java.lang.Object implements TransportConfig
-
-
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()
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()
HttpConfig
withAuth(TokenProvider auth)
HttpConfig
withCompression(HttpConfig.Compression compression)
HttpConfig
withEndpoint(java.lang.String endpoint)
HttpConfig
withHeaders(java.util.Map<java.lang.String,java.lang.String> headers)
HttpConfig
withTimeout(java.lang.Double timeout)
HttpConfig
withTimeoutInMillis(java.lang.Integer timeoutInMillis)
HttpConfig
withUrl(java.net.URI url)
HttpConfig
withUrlParams(java.util.Map<java.lang.String,java.lang.String> urlParams)
-
-
-
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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
withUrl
public HttpConfig withUrl(java.net.URI url)
- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withEndpoint
public HttpConfig withEndpoint(@Nullable java.lang.String endpoint)
- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withTimeout
public HttpConfig withTimeout(@Nullable java.lang.Double timeout)
- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withTimeoutInMillis
public HttpConfig withTimeoutInMillis(@Nullable java.lang.Integer timeoutInMillis)
- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withAuth
public HttpConfig withAuth(@Nullable TokenProvider auth)
- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withUrlParams
public HttpConfig withUrlParams(@Nullable java.util.Map<java.lang.String,java.lang.String> urlParams)
- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withHeaders
public HttpConfig withHeaders(@Nullable java.util.Map<java.lang.String,java.lang.String> headers)
- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withCompression
public HttpConfig withCompression(@Nullable HttpConfig.Compression compression)
- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
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)
-
-