Class HttpAppender.Builder<B extends HttpAppender.Builder<B>>
java.lang.Object
org.apache.logging.log4j.core.filter.AbstractFilterable.Builder<B>
org.apache.logging.log4j.core.appender.AbstractAppender.Builder<B>
org.apache.logging.log4j.core.appender.HttpAppender.Builder<B>
- Type Parameters:
B
- The type to build
- All Implemented Interfaces:
Builder<HttpAppender>
- Enclosing class:
- HttpAppender
public static class HttpAppender.Builder<B extends HttpAppender.Builder<B>>
extends AbstractAppender.Builder<B>
implements Builder<HttpAppender>
Builds HttpAppender instances.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the object after all configuration has been set.int
Property[]
int
getUrl()
boolean
setConnectTimeoutMillis
(int connectTimeoutMillis) setHeaders
(Property[] headers) setReadTimeoutMillis
(int readTimeoutMillis) setSslConfiguration
(SslConfiguration sslConfiguration) setVerifyHostname
(boolean verifyHostname) Methods inherited from class org.apache.logging.log4j.core.appender.AbstractAppender.Builder
getConfiguration, getErrorPrefix, getLayout, getName, getOrCreateLayout, getOrCreateLayout, isIgnoreExceptions, setConfiguration, setIgnoreExceptions, setLayout, setName, withConfiguration, withIgnoreExceptions, withLayout, withName
Methods inherited from class org.apache.logging.log4j.core.filter.AbstractFilterable.Builder
asBuilder, getFilter, getPropertyArray, setFilter, setPropertyArray, withFilter
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.logging.log4j.core.util.Builder
getErrorPrefix, isValid
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Description copied from interface:Builder
Builds the object after all configuration has been set. This will use default values for any unspecified attributes for the object.- Specified by:
build
in interfaceBuilder<B extends HttpAppender.Builder<B>>
- Returns:
- the configured instance.
-
getUrl
-
getMethod
-
getConnectTimeoutMillis
public int getConnectTimeoutMillis() -
getReadTimeoutMillis
public int getReadTimeoutMillis() -
getHeaders
-
getSslConfiguration
-
isVerifyHostname
public boolean isVerifyHostname() -
setUrl
-
setMethod
-
setConnectTimeoutMillis
-
setReadTimeoutMillis
-
setHeaders
-
setSslConfiguration
-
setVerifyHostname
-