Class Router.Continuation

java.lang.Object
org.glassfish.jersey.server.internal.routing.Router.Continuation
Enclosing interface:
Router

public static final class Router.Continuation extends 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.

  • Field Details

  • Constructor Details

  • Method Details

    • of

      Create a terminal continuation from the routed request.
      Parameters:
      result - routed request.
      Returns:
      terminal continuation with no next level routers in the routing hierarchy and the supplied routed request.
    • of

      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

      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

      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.