Class JdkHttpServerProvider

java.lang.Object
org.glassfish.jersey.jdkhttp.JdkHttpServerProvider
All Implemented Interfaces:
WebServerProvider

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

    • JdkHttpServerProvider

      public JdkHttpServerProvider()
  • 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.