File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
web/src/main/java/org/springframework/security/web/servlet/util/matcher Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 23
23
24
24
import org .springframework .http .HttpMethod ;
25
25
import org .springframework .security .web .util .matcher .RequestMatcher ;
26
+ import org .springframework .security .web .util .matcher .RequestMatcherBuilder ;
26
27
import org .springframework .security .web .util .matcher .RequestVariablesExtractor ;
27
28
import org .springframework .util .AntPathMatcher ;
28
29
import org .springframework .util .PathMatcher ;
46
47
* @author Eddú Meléndez
47
48
* @author Evgeniy Cheban
48
49
* @since 4.1.1
50
+ * @deprecated Use {@link PathPatternRequestMatcher} instead.
49
51
*/
52
+ @ Deprecated
50
53
public class MvcRequestMatcher implements RequestMatcher , RequestVariablesExtractor {
51
54
52
55
private final DefaultMatcher defaultMatcher = new DefaultMatcher ();
@@ -197,7 +200,7 @@ public MatchResult matcher(HttpServletRequest request) {
197
200
* @author Marcus Da Coregio
198
201
* @since 5.8
199
202
*/
200
- public static final class Builder {
203
+ public static final class Builder implements RequestMatcherBuilder {
201
204
202
205
private final HandlerMappingIntrospector introspector ;
203
206
@@ -237,6 +240,7 @@ public MvcRequestMatcher pattern(String pattern) {
237
240
* @param pattern the patterns used to match
238
241
* @return the generated {@link MvcRequestMatcher}
239
242
*/
243
+ @ Override
240
244
public MvcRequestMatcher pattern (HttpMethod method , String pattern ) {
241
245
MvcRequestMatcher mvcRequestMatcher = new MvcRequestMatcher (this .introspector , pattern );
242
246
mvcRequestMatcher .setServletPath (this .servletPath );
You can’t perform that action at this time.
0 commit comments