Class JettyHelpers

  • All Implemented Interfaces:

    
    public final class JettyHelpers
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final static ServletContextHandler servletContextHandler
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • createJettyServer

         final static Server createJettyServer(JettyBundleActivatorConfig config)

        Create a non-secure Jetty server instance listening on the given port and host address. sendServerVersion controls whether Jetty should send its server version in the error responses or not.

      • createSecureJettyServer

         final static Server createSecureJettyServer(JettyBundleActivatorConfig config)

        Create a secure Jetty server instance listening on the given port and host address and using the KeyStore located at keyStorePath, optionally protected by keyStorePassword. needClientAuth sets whether client auth is needed for SSL (see SslContextFactory.setNeedClientAuth). sendServerVersion controls whether Jetty should send its server version in the error responses or not.