Class Router.Continuation
java.lang.Object
org.glassfish.jersey.server.internal.routing.Router.Continuation
- Enclosing interface:
Router
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 Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateContinuation(RequestProcessingContext request, Iterable<Router> next) -
Method Summary
Modifier and TypeMethodDescriptionnext()Get the next level routers to be invoked oran emptyif no next level routers are present.(package private) static Router.Continuationof(RequestProcessingContext result) Create a terminal continuation from the routed request.(package private) static Router.Continuationof(RequestProcessingContext result, Iterable<Router> next) Create a continuation from the routed request and a collection of next level routers.(package private) static Router.Continuationof(RequestProcessingContext request, Router next) Create a continuation from the routed request and a single of next level routers.(package private) RequestProcessingContextGet the routed request context.
-
Field Details
-
requestProcessingContext
-
next
-
-
Constructor Details
-
Continuation
-
-
Method Details
-
of
Create a terminal continuation from the routed request.- Parameters:
result- routed request.- Returns:
- terminal continuation with no
next level routersin 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
nextin 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
nextin the routing chain and the supplied routed request.
-
requestContext
RequestProcessingContext requestContext()Get the routed request context.- Returns:
- routed request context.
-
next
-