java.lang.Object
io.helidon.nima.webserver.context.ContextFeature
All Implemented Interfaces:
Weighted, HttpFeature, ServerLifecycle, Comparable<Weighted>, Supplier<HttpFeature>

public class ContextFeature extends Object implements HttpFeature, Weighted
Adds Context support to NĂ­ma WebServer. When added to the processing, further processing will be executed in a request specific context.
  • Method Details

    • create

      public static ContextFeature create()
      Create a new context feature with default setup.
      Returns:
      a new feature
    • create

      public static ContextFeature create(Config config)
      Create a new context feature with custom setup.
      Parameters:
      config - configuration
      Returns:
      a new configured feature
    • setup

      public void setup(HttpRouting.Builder routing)
      Description copied from interface: HttpFeature
      Method to set up a feature.
      Specified by:
      setup in interface HttpFeature
      Parameters:
      routing - routing builder
    • weight

      public double weight()
      Description copied from interface: Weighted
      Weight of this class (maybe because it is defined dynamically, so it cannot be defined by an annotation). If not dynamic, you can use the Weight annotation rather than implementing this interface as long as it is supported by the library using this Weighted.
      Specified by:
      weight in interface Weighted
      Returns:
      the weight of this service, must be a non-negative number