Interface ServerFeature

All Superinterfaces:
All Known Implementing Classes:
AccessLogFeature, ContextFeature, CorsFeature, ObserveFeature, OpenApiFeature, SecurityFeature

public interface ServerFeature extends NamedService
Server features provide a way to add or update server configuration. These features are configured for the whole server and may update listeners and routing configuration.

Server features are resolved when the WebServer is being created.

  • Method Details

    • setup

      void setup(ServerFeature.ServerFeatureContext featureContext)
      Set up a server feature. Server features can modify server configuration, right before the server is created. To access listener configuration, or routing, a list of all listeners is provided.
      featureContext - to access builders of webserver, listeners, and routing