Class ConnectorFactory

  • All Implemented Interfaces:

    
    public final class ConnectorFactory
    
                        

    Helper class to create the requested ServerConnectors from the given config.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      ConnectorFactory(SslConfig config, SslContextFactory.Server sslContextFactory)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final ServerConnector createInsecureConnector(Server server, HttpConfiguration httpConfiguration) Create and return an insecure connector to the server.
      final ServerConnector createSecureConnector(Server server, HttpConfiguration httpConfiguration) Create and apply an SSL connector to the server.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConnectorFactory

        ConnectorFactory(SslConfig config, SslContextFactory.Server sslContextFactory)
    • Method Detail

      • createInsecureConnector

         final ServerConnector createInsecureConnector(Server server, HttpConfiguration httpConfiguration)

        Create and return an insecure connector to the server.

        Returns:

        The created ServerConnector.

      • createSecureConnector

         final ServerConnector createSecureConnector(Server server, HttpConfiguration httpConfiguration)

        Create and apply an SSL connector to the server.

        Returns:

        The created ServerConnector.