Class DisabledObserverFeature

java.lang.Object
io.helidon.webserver.observe.DisabledObserverFeature
All Implemented Interfaces:
HttpFeature, ServerLifecycle, Supplier<HttpFeature>

public class DisabledObserverFeature extends Object implements HttpFeature
An HttpFeature that marks endpoint as disabled.
  • Method Details

    • create

      public static DisabledObserverFeature create(String observerName, String endpoint)
      Create a new disabled feature. Any requests to the endpoint will end with Status.SERVICE_UNAVAILABLE_503.
      Parameters:
      observerName - name of the observer, such as Health
      endpoint - endpoint of the observer, such as /observe/health/*
      Returns:
      a new feature that returns unavailable for the endpoint for any method
    • 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