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
 
 public abstract class AbstractJsseEndpoint<S,U> extends AbstractEndpoint<S,U> 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.apache.tomcat.util.net.AbstractEndpointAbstractEndpoint.BindState, AbstractEndpoint.Handler<S>
 
- 
 - 
Field Summary- 
Fields inherited from class org.apache.tomcat.util.net.AbstractEndpointacceptor, acceptorThreadCount, acceptorThreadPriority, attributes, connections, internalExecutor, negotiableProtocols, paused, processorCache, running, sm, socketProperties, sslHostConfigs, threadPriority
 
- 
 - 
Constructor SummaryConstructors Constructor Description AbstractJsseEndpoint()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidcreateSSLContext(SSLHostConfig sslHostConfig)Create the SSLContext for the given SSLHostConfig.protected javax.net.ssl.SSLEnginecreateSSLEngine(java.lang.String sniHostName, java.util.List<Cipher> clientRequestedCiphers, java.util.List<java.lang.String> clientRequestedApplicationProtocols)protected java.net.InetSocketAddressgetLocalAddress()Obtain the network address the server socket is bound to.protected abstract java.nio.channels.NetworkChannelgetServerSocket()intgetSniParseLimit()SSLImplementationgetSslImplementation()java.lang.StringgetSslImplementationName()protected voidinitialiseSsl()booleanisAlpnSupported()Identifies if the endpoint supports ALPN.voidsetSniParseLimit(int sniParseLimit)voidsetSslImplementationName(java.lang.String s)voidunbind()- 
Methods inherited from class org.apache.tomcat.util.net.AbstractEndpointaddNegotiatedProtocol, addSslHostConfig, addSslHostConfig, awaitConnectionsClose, bind, closeServerSocketGraceful, closeSocket, countDownConnection, countUpOrAwaitConnection, createExecutor, createSocketProcessor, destroy, destroySocket, destroySsl, doCloseServerSocket, findSslHostConfigs, generateCertificateDebug, getAcceptCount, getAcceptorThreadCount, 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, getMaxThreads, getMinSpareThreads, getName, getPort, getPortOffset, getPortWithOffset, getProperty, getSocketProperties, getSSLHostConfig, getTcpNoDelay, getThreadPriority, getUseAsyncIO, getUseSendfile, getUseVirtualThreads, getUtilityExecutor, hasNegotiableProtocols, init, initializeConnectionLatch, isPaused, isRunning, isSSLEnabled, logCertificate, pause, processSocket, releaseSSLContext, 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, setPortOffset, setProperty, setSocketOptions, setSSLEnabled, setTcpNoDelay, setThreadPriority, setUseAsyncIO, setUseSendfile, setUseVirtualThreads, setUtilityExecutor, shutdownExecutor, start, startAcceptorThread, startInternal, stop, stopInternal, toTimeout, unlockAccept
 
- 
 
- 
- 
- 
Method Detail- 
getSslImplementationNamepublic java.lang.String getSslImplementationName() 
 - 
setSslImplementationNamepublic void setSslImplementationName(java.lang.String s) 
 - 
getSslImplementationpublic SSLImplementation getSslImplementation() 
 - 
getSniParseLimitpublic int getSniParseLimit() 
 - 
setSniParseLimitpublic void setSniParseLimit(int sniParseLimit) 
 - 
initialiseSslprotected void initialiseSsl() throws java.lang.Exception- Throws:
- java.lang.Exception
 
 - 
createSSLContextprotected void createSSLContext(SSLHostConfig sslHostConfig) throws java.lang.IllegalArgumentException Description copied from class:AbstractEndpointCreate the SSLContext for the given SSLHostConfig.- Specified by:
- createSSLContextin class- AbstractEndpoint<S,U>
- Parameters:
- sslHostConfig- The SSLHostConfig for which the SSLContext should be created
- Throws:
- java.lang.IllegalArgumentException
 
 - 
createSSLEngineprotected javax.net.ssl.SSLEngine createSSLEngine(java.lang.String sniHostName, java.util.List<Cipher> clientRequestedCiphers, java.util.List<java.lang.String> clientRequestedApplicationProtocols)
 - 
isAlpnSupportedpublic boolean isAlpnSupported() Description copied from class:AbstractEndpointIdentifies if the endpoint supports ALPN. Note that a return value oftrueimplies thatAbstractEndpoint.isSSLEnabled()will also returntrue.- Specified by:
- isAlpnSupportedin class- AbstractEndpoint<S,U>
- Returns:
- trueif the endpoint supports ALPN in its current configuration, otherwise- false.
 
 - 
unbindpublic void unbind() throws java.lang.Exception- Specified by:
- unbindin class- AbstractEndpoint<S,U>
- Throws:
- java.lang.Exception
 
 - 
getServerSocketprotected abstract java.nio.channels.NetworkChannel getServerSocket() 
 - 
getLocalAddressprotected final java.net.InetSocketAddress getLocalAddress() throws java.io.IOExceptionDescription copied from class:AbstractEndpointObtain 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:
- getLocalAddressin class- AbstractEndpoint<S,U>
- Returns:
- The network address that the server socket is listening on or null if the server socket is not currently bound.
- Throws:
- java.io.IOException- If there is a problem determining the currently bound socket
 
 
- 
 
-