Top Fields Constructors Methods
org.apache.tomcat.util.net

public abstract Class AbstractJsseEndpoint<S, U>

extends AbstractEndpoint<S, U>
Class Inheritance
Known Direct Subclasses
org.apache.tomcat.util.net.Nio2Endpoint, org.apache.tomcat.util.net.NioEndpoint
Imports
java.io.IOException, java.net.InetSocketAddress, .SocketAddress, java.nio.channels.NetworkChannel, java.util.ArrayList, .LinkedHashSet, .List, .Set, javax.net.ssl.SSLEngine, .SSLParameters, org.apache.tomcat.util.net.openssl.ciphers.Cipher

Field Summary

Modifier and TypeField and Description
private int
private SSLImplementation
private String
Inherited from org.apache.tomcat.util.net.AbstractEndpoint:
acceptoracceptorThreadPriorityattributesconnectionsinternalExecutornegotiableProtocolspausedprocessorCacherunningsmsocketPropertiessslHostConfigsthreadPriority

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
createSSLContext(SSLHostConfig
The SSLHostConfig for which the SSLContext should be created
sslHostConfig
)

Implements abstract org.apache.tomcat.util.net.AbstractEndpoint.createSSLContext.

Create the SSLContext for the given SSLHostConfig.

protected SSLEngine
createSSLEngine(String sniHostName, List<Cipher> clientRequestedCiphers, List<String> clientRequestedApplicationProtocols)

protected final InetSocketAddress
getLocalAddress()

Implements abstract org.apache.tomcat.util.net.AbstractEndpoint.getLocalAddress.

Obtain the network address the server socket is bound to.

protected abstract NetworkChannel
public int
public SSLImplementation
public String
protected void
private SSLHostConfigCertificate
selectCertificate(SSLHostConfig sslHostConfig, List<Cipher> clientCiphers)

public void
setSniParseLimit(int sniParseLimit)

public void
public void
Inherited from org.apache.tomcat.util.net.AbstractEndpoint:
addNegotiatedProtocoladdSslHostConfigaddSslHostConfigawaitConnectionsClosebindcloseServerSocketGracefulcloseSocketcountDownConnectioncountUpOrAwaitConnectioncreateExecutorcreateSocketProcessordestroydestroySocketdestroySsldoCloseServerSocketfindSslHostConfigsgenerateCertificateDebuggetAcceptCountgetAcceptorThreadPrioritygetAddressgetAttributegetBindOnInitgetBindStategetConnectionCountgetConnectionLingergetConnectionsgetConnectionTimeoutgetCurrentThreadCountgetCurrentThreadsBusygetDaemongetDefaultSSLHostConfigNamegetDeferAcceptgetDomaingetExecutorgetExecutorTerminationTimeoutMillisgetHandlergetIdgetKeepAliveTimeoutgetLocalPortgetLoggetLogCertificategetMaxConnectionsgetMaxKeepAliveRequestsgetMaxThreadsgetMinSpareThreadsgetNamegetPortgetPortOffsetgetPortWithOffsetgetPropertygetSocketPropertiesgetSSLHostConfiggetTcpNoDelaygetThreadPrioritygetUseAsyncIOgetUseSendfilegetUseVirtualThreadsgetUtilityExecutorhasNegotiableProtocolsinitinitializeConnectionLatchisPausedisRunningisSSLEnabledlogCertificatepauseprocessSocketreleaseSSLContextreloadSslHostConfigreloadSslHostConfigsremoveSslHostConfigresumeserverSocketAcceptsetAcceptCountsetAcceptorThreadPrioritysetAddresssetAttributesetBindOnInitsetConnectionLingersetConnectionTimeoutsetDaemonsetDefaultSSLHostConfigNamesetDomainsetExecutorsetExecutorTerminationTimeoutMillissetHandlersetKeepAliveTimeoutsetMaxConnectionssetMaxKeepAliveRequestssetMaxThreadssetMinSpareThreadssetNamesetPortsetPortOffsetsetPropertysetSocketOptionssetSSLEnabledsetTcpNoDelaysetThreadPrioritysetUseAsyncIOsetUseSendfilesetUseVirtualThreadssetUtilityExecutorshutdownExecutorstartstartAcceptorThreadstartInternalstopstopInternaltoTimeoutunlockAccept

Field Detail

sniParseLimitback to summary
private int sniParseLimit
sslImplementationback to summary
private SSLImplementation sslImplementation
sslImplementationNameback to summary
private String sslImplementationName

Constructor Detail

AbstractJsseEndpointback to summary
public AbstractJsseEndpoint()

Method Detail

createSSLContextback to summary
protected void createSSLContext(SSLHostConfig sslHostConfig) throws IllegalArgumentException

Implements abstract org.apache.tomcat.util.net.AbstractEndpoint.createSSLContext.

Doc from org.apache.tomcat.util.net.AbstractEndpoint.createSSLContext.

Create the SSLContext for the given SSLHostConfig.

Parameters
sslHostConfig:SSLHostConfig

The SSLHostConfig for which the SSLContext should be created

Annotations
@Override
createSSLEngineback to summary
protected SSLEngine createSSLEngine(String sniHostName, List<Cipher> clientRequestedCiphers, List<String> clientRequestedApplicationProtocols)
getLocalAddressback to summary
protected final InetSocketAddress getLocalAddress() throws IOException

Implements abstract org.apache.tomcat.util.net.AbstractEndpoint.getLocalAddress.

Doc from org.apache.tomcat.util.net.AbstractEndpoint.getLocalAddress.

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.

Returns:InetSocketAddress

The network address that the server socket is listening on or null if the server socket is not currently bound.

Annotations
@Override
Exceptions
IOException:
If there is a problem determining the currently bound socket
getServerSocketback to summary
protected abstract NetworkChannel getServerSocket()
getSniParseLimitback to summary
public int getSniParseLimit()
getSslImplementationback to summary
public SSLImplementation getSslImplementation()
getSslImplementationNameback to summary
public String getSslImplementationName()
initialiseSslback to summary
protected void initialiseSsl() throws Exception
selectCertificateback to summary
private SSLHostConfigCertificate selectCertificate(SSLHostConfig sslHostConfig, List<Cipher> clientCiphers)
setSniParseLimitback to summary
public void setSniParseLimit(int sniParseLimit)
setSslImplementationNameback to summary
public void setSslImplementationName(String s)
unbindback to summary
public void unbind() throws Exception

Implements abstract org.apache.tomcat.util.net.AbstractEndpoint.unbind.

Annotations
@Override