Package org.glassfish.jersey.jetty
Class JettyHttpServerProvider
java.lang.Object
org.glassfish.jersey.jetty.JettyHttpServerProvider
- All Implemented Interfaces:
WebServerProvider
Server provider for servers based on Jetty
Server
.- 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
-
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 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
.
-