Top Description Fields Constructors Methods
ch.qos.logback.core.net

public abstract Class AbstractSSLSocketAppender<E>

extends AbstractSocketAppender<E>
implements SSLComponent
Class Inheritance
All Implemented Interfaces
ch.qos.logback.core.net.ssl.SSLComponent
Imports
javax.net.SocketFactory, javax.net.ssl.SSLContext, ch.qos.logback.core.net.ssl.ConfigurableSSLSocketFactory, .SSLComponent, .SSLConfiguration, .SSLParametersConfiguration

An abstract base for module specific SSLSocketAppender implementations located in other logback modules.
Author
Carl Harris

Field Summary

Modifier and TypeField and Description
private SocketFactory
private SSLConfiguration
Inherited from ch.qos.logback.core.net.AbstractSocketAppender:
DEFAULT_PORTDEFAULT_QUEUE_SIZEDEFAULT_RECONNECTION_DELAY

Constructor Summary

AccessConstructor and Description
protected
AbstractSSLSocketAppender()

Constructs a new appender.

Method Summary

Modifier and TypeMethod and Description
protected SocketFactory

Returns:

socket factory
getSocketFactory
()

Overrides ch.qos.logback.core.net.AbstractSocketAppender.getSocketFactory.

Gets an SocketFactory that produces SSL sockets using an SSLContext that is derived from the appender's configuration.
public SSLConfiguration

Returns:

SSL configuration; if no configuration has been set, a default configuration is returned
getSsl
()

Implements ch.qos.logback.core.net.ssl.SSLComponent.getSsl.

Gets the SSL configuration.
public void
setSsl(SSLConfiguration
the SSL configuration to set
ssl
)

Implements ch.qos.logback.core.net.ssl.SSLComponent.setSsl.

Sets the SSL configuration.
public void
Inherited from ch.qos.logback.core.net.AbstractSocketAppender:
appendconnectionFailedgetEventDelayLimitgetPortgetPSTgetQueueSizegetReconnectionDelaygetRemoteHostnewConnectorpostProcessEventsetAcceptConnectionTimeoutsetEventDelayLimitsetPortsetQueueSizesetReconnectionDelaysetRemoteHoststop

Field Detail

socketFactoryback to summary
private SocketFactory socketFactory
sslback to summary
private SSLConfiguration ssl

Constructor Detail

AbstractSSLSocketAppenderback to summary
protected AbstractSSLSocketAppender()

Constructs a new appender.

Method Detail

getSocketFactoryback to summary
protected SocketFactory getSocketFactory()

Overrides ch.qos.logback.core.net.AbstractSocketAppender.getSocketFactory.

Gets an SocketFactory that produces SSL sockets using an SSLContext that is derived from the appender's configuration.

Returns:SocketFactory

socket factory

Annotations
@Override
getSslback to summary
public SSLConfiguration getSsl()

Implements ch.qos.logback.core.net.ssl.SSLComponent.getSsl.

Gets the SSL configuration.

Returns:SSLConfiguration

SSL configuration; if no configuration has been set, a default configuration is returned

setSslback to summary
public void setSsl(SSLConfiguration ssl)

Implements ch.qos.logback.core.net.ssl.SSLComponent.setSsl.

Sets the SSL configuration.

Parameters
ssl:SSLConfiguration

the SSL configuration to set

startback to summary
public void start()

Overrides ch.qos.logback.core.net.AbstractSocketAppender.start.

Implements ch.qos.logback.core.spi.LifeCycle.start.

Annotations
@Override