final class RoutingStage extends AbstractChainableStage<RequestProcessingContext>
stored in the routing context.MatchedEndpointExtractorStage| Modifier and Type | Class and Description |
|---|---|
private static class |
RoutingStage.RoutingResult |
Stage.Builder<DATA>, Stage.Continuation<DATA>| Modifier and Type | Field and Description |
|---|---|
private Router |
routingRoot |
| Constructor and Description |
|---|
RoutingStage(Router routingRoot)
Create a new routing stage instance.
|
| Modifier and Type | Method and Description |
|---|---|
private RoutingStage.RoutingResult |
_apply(RequestProcessingContext request,
Router router) |
Stage.Continuation<RequestProcessingContext> |
apply(RequestProcessingContext context)
Performs a data processing task and returns the processed data together with
a
processing continuation. |
getDefaultNext, setDefaultNextprivate final Router routingRoot
RoutingStage(Router routingRoot)
routingRoot - root router.public Stage.Continuation<RequestProcessingContext> apply(RequestProcessingContext context)
processing continuation.
Routing stage navigates through the nested routing hierarchy
using a depth-first transformation strategy until a request-to-response
inflector is found on
a leaf stage node, in which case the request routing is terminated and an
inflector (if found) is pushed
to the routing context.context - data to be transformed.private RoutingStage.RoutingResult _apply(RequestProcessingContext request, Router router)