public abstract class AbstractJsseEndpoint<S,U> extends AbstractEndpoint<S,U>
AbstractEndpoint.BindState, AbstractEndpoint.Handler<S>
acceptors, acceptorThreadCount, acceptorThreadPriority, attributes, internalExecutor, negotiableProtocols, paused, processorCache, running, sm, socketProperties, sslHostConfigs, threadPriority
Constructor and Description |
---|
AbstractJsseEndpoint() |
Modifier and Type | Method and Description |
---|---|
protected void |
createSSLContext(SSLHostConfig sslHostConfig)
Create the SSLContextfor the the given SSLHostConfig.
|
protected javax.net.ssl.SSLEngine |
createSSLEngine(java.lang.String sniHostName,
java.util.List<Cipher> clientRequestedCiphers,
java.util.List<java.lang.String> clientRequestedApplicationProtocols) |
protected void |
destroySsl() |
protected java.net.InetSocketAddress |
getLocalAddress()
Obtain the network address the server socket is bound to.
|
protected abstract java.nio.channels.NetworkChannel |
getServerSocket() |
int |
getSniParseLimit() |
protected SSLHostConfig.Type |
getSslConfigType() |
SSLImplementation |
getSslImplementation() |
java.lang.String |
getSslImplementationName() |
protected void |
initialiseSsl() |
boolean |
isAlpnSupported()
Identifies if the endpoint supports ALPN.
|
protected void |
releaseSSLContext(SSLHostConfig sslHostConfig)
Release the SSLContext, if any, associated with the SSLHostConfig.
|
void |
setSniParseLimit(int sniParseLimit) |
void |
setSslImplementationName(java.lang.String s) |
void |
unbind() |
addNegotiatedProtocol, addSslHostConfig, addSslHostConfig, bind, closeSocket, countDownConnection, countUpOrAwaitConnection, createExecutor, createSocketProcessor, destroy, destroySocket, findSslHostConfigs, getAcceptCount, getAcceptorThreadCount, getAcceptorThreadPriority, getAddress, getAttribute, getBindOnInit, getConnectionCount, getConnectionLinger, getConnectionTimeout, getCurrentThreadCount, getCurrentThreadsBusy, getDaemon, getDefaultSSLHostConfigName, getDeferAccept, getDomain, getExecutor, getExecutorTerminationTimeoutMillis, getHandler, getKeepAliveTimeout, getLocalPort, getLog, getMaxConnections, getMaxKeepAliveRequests, getMaxThreads, getMinSpareThreads, getName, getPort, getProperty, getSocketProperties, getSSLHostConfig, getTcpNoDelay, getThreadPriority, getUseSendfile, hasNegotiableProtocols, init, initializeConnectionLatch, isPaused, isRunning, isSSLEnabled, pause, processSocket, reloadSslHostConfig, reloadSslHostConfigs, removeSslHostConfig, resume, serverSocketAccept, setAcceptCount, setAcceptorThreadCount, setAcceptorThreadPriority, setAddress, setAttribute, setBindOnInit, setConnectionLinger, setConnectionTimeout, setDaemon, setDefaultSSLHostConfigName, setDomain, setExecutor, setExecutorTerminationTimeoutMillis, setHandler, setKeepAliveTimeout, setMaxConnections, setMaxKeepAliveRequests, setMaxThreads, setMinSpareThreads, setName, setPort, setProperty, setSocketOptions, setSSLEnabled, setTcpNoDelay, setThreadPriority, setUseSendfile, shutdownExecutor, start, startAcceptorThreads, startInternal, stop, stopInternal
public java.lang.String getSslImplementationName()
public void setSslImplementationName(java.lang.String s)
public SSLImplementation getSslImplementation()
public int getSniParseLimit()
public void setSniParseLimit(int sniParseLimit)
protected SSLHostConfig.Type getSslConfigType()
getSslConfigType
in class AbstractEndpoint<S,U>
protected void initialiseSsl() throws java.lang.Exception
java.lang.Exception
protected void createSSLContext(SSLHostConfig sslHostConfig) throws java.lang.IllegalArgumentException
AbstractEndpoint
createSSLContext
in class AbstractEndpoint<S,U>
sslHostConfig
- The SSLHostConfig for which the SSLContext should be
createdjava.lang.IllegalArgumentException
protected void destroySsl() throws java.lang.Exception
java.lang.Exception
protected void releaseSSLContext(SSLHostConfig sslHostConfig)
AbstractEndpoint
releaseSSLContext
in class AbstractEndpoint<S,U>
sslHostConfig
- The SSLHostConfig for which the SSLContext should be
releasedprotected javax.net.ssl.SSLEngine createSSLEngine(java.lang.String sniHostName, java.util.List<Cipher> clientRequestedCiphers, java.util.List<java.lang.String> clientRequestedApplicationProtocols)
public boolean isAlpnSupported()
AbstractEndpoint
true
implies that AbstractEndpoint.isSSLEnabled()
will also return
true
.isAlpnSupported
in class AbstractEndpoint<S,U>
true
if the endpoint supports ALPN in its current
configuration, otherwise false
.public void unbind() throws java.lang.Exception
unbind
in class AbstractEndpoint<S,U>
java.lang.Exception
protected abstract java.nio.channels.NetworkChannel getServerSocket()
protected final java.net.InetSocketAddress getLocalAddress() throws java.io.IOException
AbstractEndpoint
getLocalAddress
in class AbstractEndpoint<S,U>
java.io.IOException
- If there is a problem determining the currently bound
socketCopyright © 2000-1970 Apache Software Foundation. All Rights Reserved.