Class Routing
- java.lang.Object
-
- org.glassfish.jersey.server.internal.routing.Routing
-
public final class Routing extends java.lang.Object
Jersey routing entry point.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Routing.Builder
Resource routing builder.
-
Constructor Summary
Constructors Modifier Constructor Description private
Routing()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Routing.Builder
forModel(RuntimeResourceModel resourceModel)
Create a routing stage builder for a given runtime resource model.static Stage<RequestProcessingContext>
matchedEndpointExtractor()
Create a new request pre-processing stage that extracts a matched endpoint from a routing context, where it was previously stored by the request routing stage and (if available) returns the endpoint wrapped in a next terminal stage.
-
-
-
Method Detail
-
matchedEndpointExtractor
public static Stage<RequestProcessingContext> matchedEndpointExtractor()
Create a new request pre-processing stage that extracts a matched endpoint from a routing context, where it was previously stored by the request routing stage and (if available) returns the endpoint wrapped in a next terminal stage. This request pre-processing stage should be a final stage in the request processing chain.- Returns:
- new matched endpoint extractor request pre-processing stage.
-
forModel
public static Routing.Builder forModel(RuntimeResourceModel resourceModel)
Create a routing stage builder for a given runtime resource model.- Parameters:
resourceModel
- runtime resource model- Returns:
- new routing stage builder.
-
-