Class PathMatchingRouter

  • All Implemented Interfaces:
    Router

    final class PathMatchingRouter
    extends java.lang.Object
    implements Router
    Matches the un-matched right-hand request path to the configured collection of path pattern matching routes.
    • Field Detail

      • acceptedRoutes

        private final java.util.List<Route> acceptedRoutes
    • Constructor Detail

      • PathMatchingRouter

        PathMatchingRouter​(java.util.List<Route> routes)
        Constructs route methodAcceptorPair that uses PathPattern instances for patch matching.
        Parameters:
        routes - next-level request routers to be returned in case the router matching the built router is successful.