B
- The type to buildpublic static class HttpAppender.Builder<B extends HttpAppender.Builder<B>> extends AbstractAppender.Builder<B> implements Builder<HttpAppender>
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
HttpAppender |
build()
Builds the object after all configuration has been set.
|
int |
getConnectTimeoutMillis() |
Property[] |
getHeaders() |
String |
getMethod() |
int |
getReadTimeoutMillis() |
SslConfiguration |
getSslConfiguration() |
URL |
getUrl() |
boolean |
isVerifyHostname() |
B |
setConnectTimeoutMillis(int connectTimeoutMillis) |
B |
setHeaders(Property[] headers) |
B |
setMethod(String method) |
B |
setReadTimeoutMillis(int readTimeoutMillis) |
B |
setSslConfiguration(SslConfiguration sslConfiguration) |
B |
setUrl(URL url) |
B |
setVerifyHostname(boolean verifyHostname) |
getConfiguration, getErrorPrefix, getLayout, getName, getOrCreateLayout, getOrCreateLayout, isIgnoreExceptions, setConfiguration, setIgnoreExceptions, setLayout, setName, withConfiguration, withIgnoreExceptions, withLayout, withName
asBuilder, getFilter, getPropertyArray, setFilter, setPropertyArray, withFilter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getErrorPrefix, isValid
public HttpAppender build()
Builder
build
in interface Builder<HttpAppender>
public URL getUrl()
public String getMethod()
public int getConnectTimeoutMillis()
public int getReadTimeoutMillis()
public Property[] getHeaders()
public SslConfiguration getSslConfiguration()
public boolean isVerifyHostname()
public B setConnectTimeoutMillis(int connectTimeoutMillis)
public B setReadTimeoutMillis(int readTimeoutMillis)
public B setSslConfiguration(SslConfiguration sslConfiguration)
public B setVerifyHostname(boolean verifyHostname)
Copyright © 1999-2023 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.