Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-15419

Allow for single-pass matching in PathPattern

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0 RC1
    • Component/s: Core
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      Currently, both PathPattern.matches(String) and PathPattern.getPathRemaining(String) require an additional parsing pass to extract URI template variables (with matchAndExtract(String)). Moreover, dealing with a partial "prefix" match, like the ones matched by getPathRemaining, results in an IllegalStateException

      This should be fixed by making these methods return an "info" object, containing a boolean flag indicating whether the given path matched, and the template variables, as well as the remaining path (in case of getPathRemaining

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                aclement Andy Clement
                Reporter:
                arjen.poutsma Arjen Poutsma
                Last updater:
                St├ęphane Nicoll
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  1 year, 2 weeks, 2 days ago