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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.logging.log4j.core.appender.AbstractManager
AbstractManager.AbstractFactoryData
-
-
Field Summary
Fields Modifier and Type Field Description private static java.nio.charset.CharsetCHARSETprivate intconnectTimeoutMillisprivate Property[]headersprivate booleanisHttpsprivate java.lang.Stringmethodprivate intreadTimeoutMillisprivate SslConfigurationsslConfigurationprivate java.net.URLurlprivate booleanverifyHostname-
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 voidsend(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, getManagerCount, getName, getStrSubstitutor, 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:
sendin classHttpManager- Throws:
java.io.IOException
-
-