Skip to content

Allow for single-pass matching in PathPattern [SPR-15419] #19980

@spring-projects-issues

Description

@spring-projects-issues

Arjen Poutsma opened SPR-15419 and commented

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


Issue Links:

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions