public abstract class AbstractJsseEndpoint<S> extends AbstractEndpoint<S>
AbstractEndpoint.Acceptor, 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 SSLEngine |
createSSLEngine(String sniHostName,
List<Cipher> clientRequestedCiphers,
List<String> clientRequestedApplicationProtocols) |
protected InetSocketAddress |
getLocalAddress()
Obtain the network address the server socket is bound to.
|
protected abstract NetworkChannel |
getServerSocket() |
int |
getSniParseLimit() |
SSLImplementation |
getSslImplementation() |
String |
getSslImplementationName() |
void |
init() |
protected void |
initialiseSsl() |
boolean |
isAlpnSupported()
Identifies if the endpoint supports ALPN.
|
void |
setSniParseLimit(int sniParseLimit) |
void |
setSslImplementationName(String s) |
void |
unbind() |
addNegotiatedProtocol, addSslHostConfig, addSslHostConfig, bind, closeServerSocketGraceful, countDownConnection, countUpOrAwaitConnection, createAcceptor, createExecutor, createSocketProcessor, destroy, destroySsl, doCloseServerSocket, findSslHostConfigs, getAcceptCount, getAcceptorThreadCount, getAcceptorThreadPriority, getAddress, getAttribute, getBacklog, getBindOnInit, getConnectionCount, getConnectionLinger, getConnectionTimeout, getCurrentThreadCount, getCurrentThreadsBusy, getDaemon, getDefaultSSLHostConfigName, getDeferAccept, getDomain, getExecutor, getExecutorTerminationTimeoutMillis, getHandler, getKeepAliveTimeout, getLocalPort, getLog, getMaxConnections, getMaxHeaderCount, getMaxKeepAliveRequests, getMaxThreads, getMinSpareThreads, getName, getPort, getProperty, getSocketProperties, getSoLinger, getSoTimeout, getSSLHostConfig, getTcpNoDelay, getThreadPriority, getUseAsyncIO, getUseSendfile, handleExceptionWithDelay, hasNegotiableProtocols, initializeConnectionLatch, isPaused, isRunning, isSSLEnabled, pause, processSocket, releaseConnectionLatch, releaseSSLContext, reloadSslHostConfig, reloadSslHostConfigs, removeSslHostConfig, resume, setAcceptCount, setAcceptorThreadCount, setAcceptorThreadPriority, setAddress, setAttribute, setBacklog, setBindOnInit, setConnectionLinger, setConnectionTimeout, setDaemon, setDefaultSSLHostConfigName, setDomain, setExecutor, setExecutorTerminationTimeoutMillis, setHandler, setKeepAliveTimeout, setMaxConnections, setMaxHeaderCount, setMaxKeepAliveRequests, setMaxThreads, setMinSpareThreads, setName, setPort, setProperty, setSoLinger, setSoTimeout, setSSLEnabled, setTcpNoDelay, setThreadPriority, setUseAsyncIO, setUseSendfile, shutdownExecutor, start, startAcceptorThreads, startInternal, stop, stopInternal, toTimeout, unlockAccept
public String getSslImplementationName()
public void setSslImplementationName(String s)
public SSLImplementation getSslImplementation()
public int getSniParseLimit()
public void setSniParseLimit(int sniParseLimit)
protected void createSSLContext(SSLHostConfig sslHostConfig) throws IllegalArgumentException
AbstractEndpoint
createSSLContext
in class AbstractEndpoint<S>
sslHostConfig
- The SSLHostConfig for which the SSLContext should be
createdIllegalArgumentException
protected SSLEngine createSSLEngine(String sniHostName, List<Cipher> clientRequestedCiphers, List<String> clientRequestedApplicationProtocols)
public boolean isAlpnSupported()
AbstractEndpoint
true
implies that AbstractEndpoint.isSSLEnabled()
will also return
true
.isAlpnSupported
in class AbstractEndpoint<S>
true
if the endpoint supports ALPN in its current
configuration, otherwise false
.public void init() throws Exception
init
in class AbstractEndpoint<S>
Exception
public void unbind() throws Exception
unbind
in class AbstractEndpoint<S>
Exception
protected abstract NetworkChannel getServerSocket()
protected final InetSocketAddress getLocalAddress() throws IOException
AbstractEndpoint
getLocalAddress
in class AbstractEndpoint<S>
IOException
- If there is a problem determining the currently bound
socketCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.