Skip to content

Add static factory methods to RequestMatcher implementations #11938

@marcusdacoregio

Description

@marcusdacoregio

With this PR merged, the DSL methods that create an AntPathRequestMatcher or a RegexRequestMatcher are deprecated. Instead, folks have to specify the actual RequestMatcher implementation that they want, something like .requestMatcher(new AntPathRequestMatcher("/path")).

We should add a static factory method to the RequestMatcher implementations to make it easier to create instances of the matchers, something like:

.requestMatcher(AntPathRequestMatcher.fromPattern("/path"));

Metadata

Metadata

Labels

in: webAn issue in web modules (web, webmvc)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions