Package org.glassfish.jersey.jdkhttp
Class JdkHttpServerProvider
java.lang.Object
org.glassfish.jersey.jdkhttp.JdkHttpServerProvider
- All Implemented Interfaces:
WebServerProvider
Server provider for servers based on JDK
HttpServer
.- Since:
- 3.1.0
- Author:
- Markus KARG (markus@headcrashing.eu)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T extends WebServer>
TcreateServer
(Class<T> type, Application application, SeBootstrap.Configuration configuration) Creates a server of a given type which runs the given application using the given bootstrap configuration.<T extends WebServer>
TcreateServer
(Class<T> type, Class<? extends Application> applicationClass, SeBootstrap.Configuration configuration) Creates a server of a given type which runs the given application using the given bootstrap configuration.
-
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 interfaceWebServerProvider
- Type Parameters:
T
- the type of the web server.- Parameters:
type
- the type of the web server. Providers SHOULD support at leastWebServer
.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 requestedtype
.
-
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 interfaceWebServerProvider
- Type Parameters:
T
- the type of the web server.- Parameters:
type
- the type of the web server. Providers SHOULD support at leastWebServer
.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 requestedtype
.
-