public class SSLSocketReceiver extends SocketReceiver implements SSLComponent
SocketReceiver
that supports SSL.context
Constructor and Description |
---|
SSLSocketReceiver() |
Modifier and Type | Method and Description |
---|---|
protected SocketFactory |
getSocketFactory()
Gets an
SocketFactory that produces SSL sockets using an
SSLContext that is derived from the receiver's configuration. |
SSLConfiguration |
getSsl()
Gets the SSL configuration.
|
void |
setSsl(SSLConfiguration ssl)
Sets the SSL configuration.
|
protected boolean |
shouldStart()
Determines whether this receiver should start.
|
connectionFailed, getRunnableTask, newConnector, onStop, run, setAcceptConnectionTimeout, setPort, setReconnectionDelay, setRemoteHost
isStarted, start, stop
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
protected SocketFactory getSocketFactory()
SocketFactory
that produces SSL sockets using an
SSLContext
that is derived from the receiver's configuration.getSocketFactory
in class SocketReceiver
protected boolean shouldStart()
Subclasses will implement this method to do any subclass-specific
validation. The subclass's ReceiverBase.getRunnableTask()
method will be
invoked (and the task returned will be submitted to the executor)
if and only if this method returns true
shouldStart
in class SocketReceiver
public SSLConfiguration getSsl()
getSsl
in interface SSLComponent
public void setSsl(SSLConfiguration ssl)
setSsl
in interface SSLComponent
ssl
- the SSL configuration to setCopyright © 2005–2021 QOS.ch. All rights reserved.