ch.qos.logback.core.net
Class AbstractSSLSocketAppender<E>
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.AppenderBase<E>
ch.qos.logback.core.net.AbstractSocketAppender<E>
ch.qos.logback.core.net.AbstractSSLSocketAppender<E>
- All Implemented Interfaces:
- Appender<E>, SocketConnector.ExceptionHandler, SSLComponent, ContextAware, FilterAttachable<E>, LifeCycle, Runnable
public abstract class AbstractSSLSocketAppender<E>
- extends AbstractSocketAppender<E>
- implements SSLComponent
An abstract base for module specific SSLSocketAppender
implementations located in other logback modules.
- Author:
- Carl Harris
Methods inherited from class ch.qos.logback.core.net.AbstractSocketAppender |
append, connectionFailed, getAddressByName, getPort, getPST, getQueueSize, getReconnectionDelay, getRemoteHost, newConnector, postProcessEvent, run, setPort, setQueueSize, setReconnectionDelay, setRemoteHost, stop |
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase |
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext |
AbstractSSLSocketAppender
protected AbstractSSLSocketAppender()
- Constructs a new appender.
AbstractSSLSocketAppender
@Deprecated
protected AbstractSSLSocketAppender(String remoteHost,
int port)
- Deprecated.
- Constructs a new appender that will connect to the given remote host
and port.
This constructor was introduced primarily to allow the encapsulation
of the base AbstractSocketAppender
to be improved in a manner that
is least disruptive to existing subclasses. This
constructor will be removed in future release.
- Parameters:
remoteHost
- target remote hostport
- target port on remote host
getSocketFactory
protected SocketFactory getSocketFactory()
- Gets an
SocketFactory
that produces SSL sockets using an
SSLContext
that is derived from the appender's configuration.
- Overrides:
getSocketFactory
in class AbstractSocketAppender<E>
- Returns:
- socket factory
start
public void start()
-
- Specified by:
start
in interface LifeCycle
- Overrides:
start
in class AbstractSocketAppender<E>
getSsl
public SSLConfiguration getSsl()
- Gets the SSL configuration.
- Specified by:
getSsl
in interface SSLComponent
- Returns:
- SSL configuration; if no configuration has been set, a
default configuration is returned
setSsl
public void setSsl(SSLConfiguration ssl)
- Sets the SSL configuration.
- Specified by:
setSsl
in interface SSLComponent
- Parameters:
ssl
- the SSL configuration to set
Copyright © 2005-2013 QOS.ch. All Rights Reserved.