public class ALPNServerConnectionFactory extends NegotiatingServerConnectionFactory implements SslHandshakeListener
AbstractLifeCycle.AbstractLifeCycleListener
SslHandshakeListener.Event
ConnectionFactory.Upgrading
Container.InheritedListener, Container.Listener
LifeCycle.Listener
FAILED, RUNNING, STARTED, STARTING, STOP_ON_FAILURE, STOPPED, STOPPING
Constructor and Description |
---|
ALPNServerConnectionFactory(String... protocols) |
ALPNServerConnectionFactory(String protocols) |
Modifier and Type | Method and Description |
---|---|
ALPNProcessor.Server |
getALPNProcessor() |
void |
handshakeFailed(SslHandshakeListener.Event event,
Throwable failure)
Callback method invoked when the TLS handshake fails.
|
void |
handshakeSucceeded(SslHandshakeListener.Event event)
Callback method invoked when the TLS handshake succeeds.
|
protected AbstractConnection |
newServerConnection(Connector connector,
EndPoint endPoint,
SSLEngine engine,
List<String> protocols,
String defaultProtocol) |
checkProtocolNegotiationAvailable, getDefaultProtocol, getNegotiatedProtocols, newConnection, setDefaultProtocol, toString
configure, getFactories, getInputBufferSize, getProtocol, getProtocols, setInputBufferSize
addBean, addBean, addBean, addEventListener, addManaged, contains, destroy, doStart, doStop, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, dumpThis, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeans
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
public ALPNServerConnectionFactory(String protocols)
public ALPNProcessor.Server getALPNProcessor()
protected AbstractConnection newServerConnection(Connector connector, EndPoint endPoint, SSLEngine engine, List<String> protocols, String defaultProtocol)
newServerConnection
in class NegotiatingServerConnectionFactory
public void handshakeSucceeded(SslHandshakeListener.Event event)
SslHandshakeListener
Callback method invoked when the TLS handshake succeeds.
handshakeSucceeded
in interface SslHandshakeListener
event
- the event object carrying information about the TLS handshake eventpublic void handshakeFailed(SslHandshakeListener.Event event, Throwable failure)
SslHandshakeListener
Callback method invoked when the TLS handshake fails.
handshakeFailed
in interface SslHandshakeListener
event
- the event object carrying information about the TLS handshake eventfailure
- the failure that caused the TLS handshake to failCopyright © 1995–2017 Webtide. All rights reserved.