Class Router.Continuation
- java.lang.Object
-
- org.glassfish.jersey.server.internal.routing.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.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Iterable<Router>
next
private RequestProcessingContext
requestProcessingContext
-
Constructor Summary
Constructors Modifier Constructor Description private
Continuation(RequestProcessingContext request, java.lang.Iterable<Router> next)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) java.lang.Iterable<Router>
next()
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, java.lang.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
requestContext()
Get the routed request context.
-
-
-
Field Detail
-
requestProcessingContext
private final RequestProcessingContext requestProcessingContext
-
next
private final java.lang.Iterable<Router> next
-
-
Constructor Detail
-
Continuation
private Continuation(RequestProcessingContext request, java.lang.Iterable<Router> next)
-
-
Method Detail
-
of
static Router.Continuation of(RequestProcessingContext result)
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
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 oran empty
if no next level routers are present.- Returns:
- the next level routers to be invoked or an empty collection if not present.
-
-