- All Superinterfaces:
ServerLifecycle,Supplier<HttpFeature>
- All Known Subinterfaces:
FeatureSupport
- All Known Implementing Classes:
AccessLogFeature,ContextFeature,HealthFeature,HelidonFeatureSupport,MetricsFeature,MicrometerFeature,ObserveFeature,OidcFeature,SecurityFeature,TracingFeature
Can be registered with
HttpRouting.Builder.addFeature(java.util.function.Supplier).
Encapsulates a set of endpoints, services and/or filters.
Feature is similar to HttpService but gives more freedom in setup.
Main difference is that a feature can add Filters and it cannot be
registered on a path (that is left to the discretion of the feature developer).
Features are not registered immediately - each feature can define a Weight or implement
Weighted to order features according to their weight. Higher weighted features are registered first.
This is to allow ordering of features in a meaningful way (e.g. Context should be first, Tracing second, Security third etc.).
-
Method Summary
Modifier and TypeMethodDescriptiondefault HttpFeatureget()voidsetup(HttpRouting.Builder routing) Method to set up a feature.Methods inherited from interface io.helidon.nima.webserver.ServerLifecycle
afterStop, beforeStart
-
Method Details
-
get
- Specified by:
getin interfaceSupplier<HttpFeature>
-
setup
Method to set up a feature.- Parameters:
routing- routing builder
-