Module io.helidon.webserver.observe
Package io.helidon.webserver.observe
Class DisabledObserverFeature
java.lang.Object
io.helidon.webserver.observe.DisabledObserverFeature
- All Implemented Interfaces:
HttpFeature
,ServerLifecycle
,Supplier<HttpFeature>
An
HttpFeature
that marks endpoint as disabled.-
Method Summary
Modifier and TypeMethodDescriptionstatic DisabledObserverFeature
Create a new disabled feature.void
setup
(HttpRouting.Builder routing) Method to set up a feature.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.helidon.webserver.http.HttpFeature
get, socket, socketRequired
Methods inherited from interface io.helidon.webserver.ServerLifecycle
afterStop, beforeStart
-
Method Details
-
create
Create a new disabled feature. Any requests to the endpoint will end withStatus.SERVICE_UNAVAILABLE_503
.- Parameters:
observerName
- name of the observer, such asHealth
endpoint
- endpoint of the observer, such as/observe/health/*
- Returns:
- a new feature that returns unavailable for the endpoint for any method
-
setup
Description copied from interface:HttpFeature
Method to set up a feature.- Specified by:
setup
in interfaceHttpFeature
- Parameters:
routing
- routing builder
-