java.lang.Object
io.helidon.jersey.webserver.JaxRsService
- All Implemented Interfaces:
HttpService,ServerLifecycle
WebServer
HttpService that adds support for a JAX-RS application.-
Method Summary
Modifier and TypeMethodDescriptionvoidAfter server stop.voidBefore server start.static JaxRsServicecreate(Config config, ResourceConfig resourceConfig) Create a new JAX-RS integration service with the default injection manager.static JaxRsServicecreate(Config config, ResourceConfig resourceConfig, org.glassfish.jersey.internal.inject.InjectionManager injectionManager) Create a new JAX-RS integration service with a custom injection manager.voidUpdates the routing to add handlers of this service.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.webserver.ServerLifecycle
afterStart
-
Method Details
-
create
Create a new JAX-RS integration service with the default injection manager.- Parameters:
config- configuration, used to configure JerseyresourceConfig- containing application resources- Returns:
- a new service to register with the WebServer
-
create
public static JaxRsService create(Config config, ResourceConfig resourceConfig, org.glassfish.jersey.internal.inject.InjectionManager injectionManager) Create a new JAX-RS integration service with a custom injection manager.- Parameters:
config- configuration, used to configure JerseyresourceConfig- containing application resourcesinjectionManager- injection manager to use- Returns:
- a new service to register with the WebServer
- See Also:
-
routing
Description copied from interface:HttpServiceUpdates the routing to add handlers of this service.- Specified by:
routingin interfaceHttpService- Parameters:
rules- to update
-
beforeStart
public void beforeStart()Description copied from interface:ServerLifecycleBefore server start.- Specified by:
beforeStartin interfaceServerLifecycle
-
afterStop
public void afterStop()Description copied from interface:ServerLifecycleAfter server stop.- Specified by:
afterStopin interfaceServerLifecycle
-