Interface HttpService

All Superinterfaces:
ServerLifecycle
All Known Subinterfaces:
StaticContentService
All Known Implementing Classes:
CoordinatorService, CorsSupport, GraphQlService, OciMetricsSupport
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface HttpService extends ServerLifecycle
Encapsulates a set of routing rules and related logic.

Instance can be assigned to the routing using HttpRouting.Builder.register(java.util.function.Supplier) methods.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Updates the routing to add handlers of this service.

    Methods inherited from interface io.helidon.webserver.ServerLifecycle

    afterStop, beforeStart
  • Method Details

    • routing

      void routing(HttpRules rules)
      Updates the routing to add handlers of this service.
      Parameters:
      rules - to update