Class ContextFeature

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

public class ContextFeature extends Object implements HttpFeature, io.helidon.common.Weighted
Adds Context support to Helidon 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(io.helidon.config.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)
      Specified by:
      setup in interface HttpFeature
    • weight

      public double weight()
      Specified by:
      weight in interface io.helidon.common.Weighted