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>
  • Constructor Details

    • AbstractJsseEndpoint

      public AbstractJsseEndpoint()
  • Method Details

    • getSslImplementationName

      public String getSslImplementationName()
    • setSslImplementationName

      public void setSslImplementationName(String s)
    • getSslImplementation

      public SSLImplementation getSslImplementation()
    • getSniParseLimit

      public int getSniParseLimit()
    • setSniParseLimit

      public void setSniParseLimit(int sniParseLimit)
    • initialiseSsl

      protected void initialiseSsl() throws Exception
      Throws:
      Exception
    • createSSLContext

      protected void createSSLContext(SSLHostConfig sslHostConfig) throws IllegalArgumentException
      Description copied from class: AbstractEndpoint
      Create the SSLContext for the given SSLHostConfig.
      Specified by:
      createSSLContext in class AbstractEndpoint<S,U>
      Parameters:
      sslHostConfig - The SSLHostConfig for which the SSLContext should be created
      Throws:
      IllegalArgumentException
    • createSSLEngine

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

      public void unbind() throws Exception
      Specified by:
      unbind in class AbstractEndpoint<S,U>
      Throws:
      Exception
    • getServerSocket

      protected abstract NetworkChannel getServerSocket()
    • getLocalAddress

      protected final InetSocketAddress getLocalAddress() throws IOException
      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 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:
      IOException - If there is a problem determining the currently bound socket