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 DisabledObserverFeatureCreate a new disabled feature.voidsetup(HttpRouting.Builder routing) Method to set up a feature.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface HttpFeature
get, socket, socketRequiredModifier and TypeMethodDescriptiondefault HttpFeatureget()default Stringsocket()Name of the listener socket this feature should be registered on, for automatically discovered features.default booleanWhether the socket defined inHttpFeature.socket()must be present for this feature, or it can be exposed on default socket.Methods inherited from interface ServerLifecycle
afterStart, afterStop, beforeStartModifier and TypeMethodDescriptiondefault voidafterStart(WebServer webServer) After server start.default voidAfter server stop.default voidBefore server start.
-
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 asHealthendpoint- 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:HttpFeatureMethod to set up a feature.- Specified by:
setupin interfaceHttpFeature- Parameters:
routing- routing builder
-