Interface Registration


public interface Registration
A routing builder registration.

This type is used internally in Helidon to allow gathering of registrations, and then re-applying them on a different builder.

  • Method Details

    • create

      static Registration create(String path, HttpService... services)
      Create a registration for service(s) with a path.
      Parameters:
      path - path of the service(s)
      services - service(s) to register
      Returns:
      a new registration
    • create

      static Registration create(HttpService... services)
      Create a registration for service(s).
      Parameters:
      services - service(s) to register
      Returns:
      a new registration
    • create

      static Registration create(HttpRoute route)
      Create a registration for a route.
      Parameters:
      route - to register
      Returns:
      a new registration
    • create

      static Registration create(Filter filter)
      Create a registration for a filter.
      Parameters:
      filter - to register
      Returns:
      a new registration
    • create

      static <T> Registration create(Class<T> exceptionClass, ErrorHandler<? super T> handler)
      Create a registration for an error handler.
      Type Parameters:
      T - type of the exception to be handled
      Parameters:
      exceptionClass - class of exception to map this handler to
      handler - handler to handle that exception
      Returns:
      a new registration
    • createMaxRerouteCount

      static Registration createMaxRerouteCount(int maxReRouteCount)
      Create a registration for configuration of max re-route count.
      Parameters:
      maxReRouteCount - maximal number of re-routes to allow
      Returns:
      a new registration
    • create

      static Registration create(HttpSecurity security)
      Create a registration for HTTP security instance.
      Parameters:
      security - to register
      Returns:
      a new registration
    • register

      void register(HttpRouting.Builder routing)
      Register this registration on a different routing builder.
      Parameters:
      routing - the routing builder to apply this registration on