Class RoutingStage
java.lang.Object
org.glassfish.jersey.process.internal.AbstractChainableStage<RequestProcessingContext>
org.glassfish.jersey.server.internal.routing.RoutingStage
- All Implemented Interfaces:
ChainableStage<RequestProcessingContext>
,Stage<RequestProcessingContext>
Request pre-processing stage that encapsulates hierarchical resource matching
and request routing.
Once the routing is finished, an endpoint (if matched) is
stored in the routing context
.- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.glassfish.jersey.process.internal.Stage
Stage.Builder<DATA>, Stage.Continuation<DATA>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate RoutingStage.RoutingResult
_apply
(RequestProcessingContext request, Router router) apply
(RequestProcessingContext context) Performs a data processing task and returns the processed data together with aprocessing continuation
.Methods inherited from class org.glassfish.jersey.process.internal.AbstractChainableStage
getDefaultNext, setDefaultNext
-
Field Details
-
routingRoot
-
-
Constructor Details
-
RoutingStage
RoutingStage(Router routingRoot) Create a new routing stage instance.- Parameters:
routingRoot
- root router.
-
-
Method Details
-
apply
Performs a data processing task and returns the processed data together with aprocessing continuation
. Routing stage navigates through the nestedrouting hierarchy
using a depth-first transformation strategy until a request-to-response inflector isfound on a leaf stage node
, in which case the request routing is terminated and aninflector
(if found) is pushed to therouting context
.- Parameters:
context
- data to be transformed.- Returns:
- a processing continuation.
-
_apply
-