ch.qos.logback.core.net
Class SSLSocketAppenderBase<E>

java.lang.Object
  extended by ch.qos.logback.core.spi.ContextAwareBase
      extended by ch.qos.logback.core.AppenderBase<E>
          extended by ch.qos.logback.core.net.SocketAppenderBase<E>
              extended by 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

Field Summary
 
Fields inherited from class ch.qos.logback.core.net.SocketAppenderBase
address, counter, DEFAULT_PORT, DEFAULT_RECONNECTION_DELAY, oos, port, reconnectionDelay, remoteHost
 
Fields inherited from class ch.qos.logback.core.AppenderBase
name, started
 
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
 
Constructor Summary
SSLSocketAppenderBase()
           
 
Method Summary
protected  SocketFactory getSocketFactory()
          Gets an SocketFactory that produces SSL sockets using an SSLContext that is derived from the appender's configuration.
 SSLConfiguration getSsl()
          Gets the SSL configuration.
 void setSsl(SSLConfiguration ssl)
          Sets the SSL configuration.
 void start()
          Start this appender.
 
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.AppenderBase
addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, toString
 
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
 

Constructor Detail

SSLSocketAppenderBase

public SSLSocketAppenderBase()
Method Detail

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.