Package org.apache.tomcat.util.net
Class AbstractJsseEndpoint<S,U>
java.lang.Object
org.apache.tomcat.util.net.AbstractEndpoint<S,U>
org.apache.tomcat.util.net.AbstractJsseEndpoint<S,U>
- Direct Known Subclasses:
Nio2Endpoint
,NioEndpoint
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.tomcat.util.net.AbstractEndpoint
AbstractEndpoint.BindState, AbstractEndpoint.Handler<S>
-
Field Summary
Fields inherited from class org.apache.tomcat.util.net.AbstractEndpoint
acceptor, acceptorThreadPriority, attributes, connections, internalExecutor, negotiableProtocols, paused, processorCache, running, sm, socketProperties, sslHostConfigs, threadPriority
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
createSSLContext
(SSLHostConfig sslHostConfig) Create the SSLContext for the given SSLHostConfig.protected SSLEngine
createSSLEngine
(String sniHostName, List<Cipher> clientRequestedCiphers, List<String> clientRequestedApplicationProtocols) protected final InetSocketAddress
Obtain the network address the server socket is bound to.protected abstract NetworkChannel
int
protected void
void
setSniParseLimit
(int sniParseLimit) void
void
unbind()
Methods inherited from class org.apache.tomcat.util.net.AbstractEndpoint
addNegotiatedProtocol, addSslHostConfig, addSslHostConfig, awaitConnectionsClose, bind, closeServerSocketGraceful, closeSocket, countDownConnection, countUpOrAwaitConnection, createExecutor, createSocketProcessor, destroy, destroySocket, destroySsl, doCloseServerSocket, findSslHostConfigs, generateCertificateDebug, getAcceptCount, getAcceptorThreadPriority, getAddress, getAttribute, getBindOnInit, getBindState, getConnectionCount, getConnectionLinger, getConnections, getConnectionTimeout, getCurrentThreadCount, getCurrentThreadsBusy, getDaemon, getDefaultSSLHostConfigName, getDeferAccept, getDomain, getExecutor, getExecutorTerminationTimeoutMillis, getHandler, getId, getKeepAliveTimeout, getLocalPort, getLog, getLogCertificate, getMaxConnections, getMaxKeepAliveRequests, getMaxQueueSize, getMaxThreads, getMinSpareThreads, getName, getPort, getPortOffset, getPortWithOffset, getProperty, getSocketProperties, getSSLHostConfig, getTcpNoDelay, getThreadPriority, getThreadsMaxIdleTime, getUseAsyncIO, getUseSendfile, getUseVirtualThreads, getUtilityExecutor, hasNegotiableProtocols, init, initializeConnectionLatch, isPaused, isRunning, isSSLEnabled, logCertificate, pause, processSocket, releaseSSLContext, reloadSslHostConfig, reloadSslHostConfigs, removeSslHostConfig, resume, serverSocketAccept, setAcceptCount, setAcceptorThreadPriority, setAddress, setAttribute, setBindOnInit, setConnectionLinger, setConnectionTimeout, setDaemon, setDefaultSSLHostConfigName, setDomain, setExecutor, setExecutorTerminationTimeoutMillis, setHandler, setKeepAliveTimeout, setMaxConnections, setMaxKeepAliveRequests, setMaxQueueSize, setMaxThreads, setMinSpareThreads, setName, setPort, setPortOffset, setProperty, setSocketOptions, setSSLEnabled, setTcpNoDelay, setThreadPriority, setThreadsMaxIdleTime, setUseAsyncIO, setUseSendfile, setUseVirtualThreads, setUtilityExecutor, shutdownExecutor, start, startAcceptorThread, startInternal, stop, stopInternal, toTimeout, unlockAccept
-
Constructor Details
-
AbstractJsseEndpoint
public AbstractJsseEndpoint()
-
-
Method Details
-
getSslImplementationName
-
setSslImplementationName
-
getSslImplementation
-
getSniParseLimit
public int getSniParseLimit() -
setSniParseLimit
public void setSniParseLimit(int sniParseLimit) -
initialiseSsl
-
createSSLContext
Description copied from class:AbstractEndpoint
Create the SSLContext for the given SSLHostConfig.- Specified by:
createSSLContext
in classAbstractEndpoint<S,
U> - Parameters:
sslHostConfig
- The SSLHostConfig for which the SSLContext should be created- Throws:
IllegalArgumentException
-
createSSLEngine
-
unbind
-
getServerSocket
-
getLocalAddress
Description copied from class:AbstractEndpoint
Obtain the network address the server socket is bound to. This primarily exists to enable the correct address to be used when unlocking the server socket since it removes the guess-work involved if no address is specifically set.- Specified by:
getLocalAddress
in classAbstractEndpoint<S,
U> - Returns:
- The network address that the server socket is listening on or null if the server socket is not currently bound.
- Throws:
IOException
- If there is a problem determining the currently bound socket
-