Package org.glassfish.jersey.simple
Class SimpleHttpServerProvider
java.lang.Object
org.glassfish.jersey.simple.SimpleHttpServerProvider
- All Implemented Interfaces:
WebServerProvider
Server provider for servers based on Simple framework
SimpleServer
.- 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
-
SimpleHttpServerProvider
public SimpleHttpServerProvider()
-
-
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
.
-