java.lang.Object
org.glassfish.jersey.server.internal.routing.Route

final class Route extends Object
Request routing information. Contains a routing pattern and a list of next-level stages to be processed in case the routing pattern successfully matches the un-matched right-hand part of the request.
  • Field Details

  • Constructor Details

  • Method Details

    • of

      static Route of(PathPattern routingPattern, List<Router> routers)
      Create a new request route.
      Parameters:
      routingPattern - request path routing pattern.
      routers - next-level routers to be processed in case the routing pattern matches the unmatched right-hand part of the request path.
      Returns:
      new request route.
    • routingPattern

      public PathPattern routingPattern()
      Get the request path routing pattern.
      Returns:
      request path routing pattern.
    • next

      public List<Router> next()
      Get next-level routers to be processed in case the routing pattern matches the unmatched right-hand part of the request path.
      Returns:
      routed next-level next.