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

public Class SSLSocketReceiver

extends SocketReceiver
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

A SocketReceiver that supports SSL.
Author
Carl Harris

Field Summary

Modifier and TypeField and Description
private SocketFactory
private SSLConfiguration

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected SocketFactory

Returns:

socket factory
getSocketFactory
()

Overrides ch.qos.logback.classic.net.SocketReceiver.getSocketFactory.

Gets an SocketFactory that produces SSL sockets using an SSLContext that is derived from the receiver'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.
protected boolean
shouldStart()

Overrides ch.qos.logback.classic.net.SocketReceiver.shouldStart.

Determines whether this receiver should start.
Inherited from ch.qos.logback.classic.net.SocketReceiver:
connectionFailedgetRunnableTasknewConnectoronStoprunsetAcceptConnectionTimeoutsetPortsetReconnectionDelaysetRemoteHost

Field Detail

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

Constructor Detail

SSLSocketReceiverback to summary
public SSLSocketReceiver()

Method Detail

getSocketFactoryback to summary
protected SocketFactory getSocketFactory()

Overrides ch.qos.logback.classic.net.SocketReceiver.getSocketFactory.

Gets an SocketFactory that produces SSL sockets using an SSLContext that is derived from the receiver'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

shouldStartback to summary
protected boolean shouldStart()

Overrides ch.qos.logback.classic.net.SocketReceiver.shouldStart.

Doc from ch.qos.logback.classic.net.SocketReceiver.shouldStart.

Determines whether this receiver should start.

Subclasses will implement this method to do any subclass-specific validation. The subclass's getRunnableTask() method will be invoked (and the task returned will be submitted to the executor) if and only if this method returns true

Returns:boolean

Doc from ch.qos.logback.classic.net.ReceiverBase.shouldStart.

flag indicating whether this receiver should start

Annotations
@Override