Class HttpURLConnectionManager
- java.lang.Object
-
- org.apache.logging.log4j.core.appender.AbstractManager
-
- org.apache.logging.log4j.core.appender.HttpManager
-
- org.apache.logging.log4j.core.appender.HttpURLConnectionManager
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class HttpURLConnectionManager extends HttpManager
-
-
Field Summary
Fields Modifier and Type Field Description private static java.nio.charset.Charset
CHARSET
private int
connectTimeoutMillis
private Property[]
headers
private boolean
isHttps
private java.lang.String
method
private int
readTimeoutMillis
private SslConfiguration
sslConfiguration
private java.net.URL
url
private boolean
verifyHostname
-
Fields inherited from class org.apache.logging.log4j.core.appender.AbstractManager
count, LOGGER
-
-
Constructor Summary
Constructors Constructor Description HttpURLConnectionManager(Configuration configuration, LoggerContext loggerContext, java.lang.String name, java.net.URL url, java.lang.String method, int connectTimeoutMillis, int readTimeoutMillis, Property[] headers, SslConfiguration sslConfiguration, boolean verifyHostname)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
send(Layout<?> layout, LogEvent event)
-
Methods inherited from class org.apache.logging.log4j.core.appender.HttpManager
getConfiguration, startup
-
Methods inherited from class org.apache.logging.log4j.core.appender.AbstractManager
close, getContentFormat, getCount, getLoggerContext, getManager, getName, hasManager, log, logDebug, logError, logger, logWarn, narrow, release, releaseSub, stop, updateData
-
-
-
-
Field Detail
-
CHARSET
private static final java.nio.charset.Charset CHARSET
-
url
private final java.net.URL url
-
isHttps
private final boolean isHttps
-
method
private final java.lang.String method
-
connectTimeoutMillis
private final int connectTimeoutMillis
-
readTimeoutMillis
private final int readTimeoutMillis
-
headers
private final Property[] headers
-
sslConfiguration
private final SslConfiguration sslConfiguration
-
verifyHostname
private final boolean verifyHostname
-
-
Constructor Detail
-
HttpURLConnectionManager
public HttpURLConnectionManager(Configuration configuration, LoggerContext loggerContext, java.lang.String name, java.net.URL url, java.lang.String method, int connectTimeoutMillis, int readTimeoutMillis, Property[] headers, SslConfiguration sslConfiguration, boolean verifyHostname)
-
-
Method Detail
-
send
public void send(Layout<?> layout, LogEvent event) throws java.io.IOException
- Specified by:
send
in classHttpManager
- Throws:
java.io.IOException
-
-