Interface HttpFeature

All Superinterfaces:
ServerLifecycle, Supplier<HttpFeature>
All Known Subinterfaces:
FeatureSupport
All Known Implementing Classes:
AccessLogFeature, ContextFeature, HealthFeature, HelidonFeatureSupport, MetricsFeature, MicrometerFeature, ObserveFeature, OidcFeature, SecurityFeature, TracingFeature

public interface HttpFeature extends Supplier<HttpFeature>, ServerLifecycle
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.).