Package com.github.loki4j.logback
Class AbstractHttpSender
- java.lang.Object
-
- com.github.loki4j.logback.AbstractHttpSender
-
- All Implemented Interfaces:
HttpSender
- Direct Known Subclasses:
ApacheHttpSender,JavaHttpSender
public abstract class AbstractHttpSender extends java.lang.Object implements HttpSender
Abstract class that implements a common logic shared between standard HTTP sender configurators.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractHttpSender.BasicAuth
-
Constructor Summary
Constructors Constructor Description AbstractHttpSender()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfillHttpConfig(HttpConfig.Builder builder)java.util.function.Function<HttpConfig,Loki4jHttpClient>getHttpClientFactory()java.lang.StringgetUrl()voidsetAuth(AbstractHttpSender.BasicAuth auth)voidsetConnectionTimeoutMs(long connectionTimeoutMs)voidsetRequestTimeoutMs(long requestTimeoutMs)voidsetTenantId(java.lang.String tenant)voidsetUrl(java.lang.String url)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.github.loki4j.logback.HttpSender
getConfig
-
-
-
-
Method Detail
-
fillHttpConfig
protected void fillHttpConfig(HttpConfig.Builder builder)
-
getHttpClientFactory
public java.util.function.Function<HttpConfig,Loki4jHttpClient> getHttpClientFactory()
- Specified by:
getHttpClientFactoryin interfaceHttpSender
-
setConnectionTimeoutMs
public void setConnectionTimeoutMs(long connectionTimeoutMs)
-
setRequestTimeoutMs
public void setRequestTimeoutMs(long requestTimeoutMs)
-
getUrl
public java.lang.String getUrl()
-
setUrl
public void setUrl(java.lang.String url)
-
setAuth
public void setAuth(AbstractHttpSender.BasicAuth auth)
-
setTenantId
public void setTenantId(java.lang.String tenant)
-
-