Class Routing


  • public final class Routing
    extends Object
    Jersey routing entry point.
    Author:
    Marek Potociar
    • 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.