Class JaxRsService

java.lang.Object
io.helidon.jersey.webserver.JaxRsService
All Implemented Interfaces:
HttpService, ServerLifecycle

public class JaxRsService extends Object implements HttpService
WebServer HttpService that adds support for a JAX-RS application.
  • Method Details

    • create

      public static JaxRsService create(Config config, ResourceConfig resourceConfig)
      Create a new JAX-RS integration service with the default injection manager.
      Parameters:
      config - configuration, used to configure Jersey
      resourceConfig - 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 Jersey
      resourceConfig - containing application resources
      injectionManager - injection manager to use
      Returns:
      a new service to register with the WebServer
      See Also:
    • routing

      public void routing(HttpRules rules)
      Description copied from interface: HttpService
      Updates the routing to add handlers of this service.
      Specified by:
      routing in interface HttpService
      Parameters:
      rules - to update
    • beforeStart

      public void beforeStart()
      Description copied from interface: ServerLifecycle
      Before server start.
      Specified by:
      beforeStart in interface ServerLifecycle
    • afterStop

      public void afterStop()
      Description copied from interface: ServerLifecycle
      After server stop.
      Specified by:
      afterStop in interface ServerLifecycle