Class Router.Continuation

  • Enclosing interface:
    Router

    public static final class Router.Continuation
    extends java.lang.Object
    Hierarchical request routing continuation.

    A continuation of a hierarchical request routing is represented by an ordered collection of next level of routers resulting in a hierarchical depth-first (depth-only) request routing.

    • Method Detail

      • of

        static Router.Continuation of​(RequestProcessingContext result,
                                      java.lang.Iterable<Router> next)
        Create a continuation from the routed request and a collection of next level routers.
        Parameters:
        result - routed request.
        next - next level routers.
        Returns:
        a continuation with the supplied next level routers to be invoked next in the routing chain and the supplied routed request.
      • of

        static Router.Continuation of​(RequestProcessingContext request,
                                      Router next)
        Create a continuation from the routed request and a single of next level routers.
        Parameters:
        request - routed request.
        next - next level router.
        Returns:
        a continuation with the supplied next level router to be invoked next in the routing chain and the supplied routed request.
      • requestContext

        RequestProcessingContext requestContext()
        Get the routed request context.
        Returns:
        routed request context.
      • next

        java.lang.Iterable<Router> next()
        Get the next level routers to be invoked or an empty if no next level routers are present.
        Returns:
        the next level routers to be invoked or an empty collection if not present.