ch.qos.logback.core.net
Class SSLSocketAppenderBase<E>
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.AppenderBase<E>
ch.qos.logback.core.net.SocketAppenderBase<E>
ch.qos.logback.core.net.SSLSocketAppenderBase<E>
- All Implemented Interfaces:
- Appender<E>, SSLComponent, ContextAware, FilterAttachable<E>, LifeCycle
public abstract class SSLSocketAppenderBase<E>
- extends SocketAppenderBase<E>
- implements SSLComponent
This is the base class for module specific SSLSocketAppender implementations.
- Author:
- Carl Harris
Methods inherited from class ch.qos.logback.core.net.SocketAppenderBase |
append, cleanUp, getAddressByName, getPort, getPST, getReconnectionDelay, getRemoteHost, postProcessEvent, setPort, setReconnectionDelay, setRemoteHost, stop |
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase |
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext |
SSLSocketAppenderBase
public SSLSocketAppenderBase()
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 SocketAppenderBase<E>
- Returns:
- socket factory
start
public void start()
- Start this appender.
- Specified by:
start
in interface LifeCycle
- Overrides:
start
in class SocketAppenderBase<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.