Class JettyHttpServerProvider

java.lang.Object
org.glassfish.jersey.jetty.JettyHttpServerProvider
All Implemented Interfaces:
WebServerProvider

public final class JettyHttpServerProvider extends Object implements WebServerProvider
Server provider for servers based on Jetty Server.
Since:
3.1.0
Author:
Markus KARG (markus@headcrashing.eu)
  • Constructor Details

    • JettyHttpServerProvider

      public JettyHttpServerProvider()
  • Method Details

    • createServer

      public <T extends WebServer> T createServer(Class<T> type, Application application, SeBootstrap.Configuration configuration)
      Description copied from interface: WebServerProvider
      Creates a server of a given type which runs the given application using the given bootstrap configuration.
      Specified by:
      createServer in interface WebServerProvider
      Type Parameters:
      T - the type of the web server.
      Parameters:
      type - the type of the web server. Providers SHOULD support at least WebServer.
      application - The application to host.
      configuration - The configuration (host, port, etc.) to be used for bootstrapping.
      Returns:
      the server, otherwise null if the provider does not support the requested type.
    • createServer

      public <T extends WebServer> T createServer(Class<T> type, Class<? extends Application> applicationClass, SeBootstrap.Configuration configuration)
      Description copied from interface: WebServerProvider
      Creates a server of a given type which runs the given application using the given bootstrap configuration.
      Specified by:
      createServer in interface WebServerProvider
      Type Parameters:
      T - the type of the web server.
      Parameters:
      type - the type of the web server. Providers SHOULD support at least WebServer.
      applicationClass - The class of application to host.
      configuration - The configuration (host, port, etc.) to be used for bootstrapping.
      Returns:
      the server, otherwise null if the provider does not support the requested type.