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
ConstructorsModifierConstructorDescriptionprivate
Continuation
(RequestProcessingContext request, Iterable<Router> next) -
Method Summary
Modifier and TypeMethodDescriptionnext()
Get the next level routers to be invoked oran empty
if no next level routers are present.(package private) static Router.Continuation
of
(RequestProcessingContext result) Create a terminal continuation from the routed request.(package private) static Router.Continuation
of
(RequestProcessingContext result, Iterable<Router> next) Create a continuation from the routed request and a collection of next level routers.(package private) static Router.Continuation
of
(RequestProcessingContext request, Router next) Create a continuation from the routed request and a single of next level routers.(package private) RequestProcessingContext
Get 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 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
Get the next level routers to be invoked oran empty
if no next level routers are present.- Returns:
- the next level routers to be invoked or an empty collection if not present.
-