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 2323
2424import org .springframework .http .HttpMethod ;
2525import org .springframework .security .web .util .matcher .RequestMatcher ;
26+ import org .springframework .security .web .util .matcher .RequestMatcherBuilder ;
2627import org .springframework .security .web .util .matcher .RequestVariablesExtractor ;
2728import org .springframework .util .AntPathMatcher ;
2829import org .springframework .util .PathMatcher ;
4647 * @author Eddú Meléndez
4748 * @author Evgeniy Cheban
4849 * @since 4.1.1
50+ * @deprecated Use {@link PathPatternRequestMatcher} instead.
4951 */
52+ @ Deprecated
5053public class MvcRequestMatcher implements RequestMatcher , RequestVariablesExtractor {
5154
5255 private final DefaultMatcher defaultMatcher = new DefaultMatcher ();
@@ -197,7 +200,7 @@ public MatchResult matcher(HttpServletRequest request) {
197200 * @author Marcus Da Coregio
198201 * @since 5.8
199202 */
200- public static final class Builder {
203+ public static final class Builder implements RequestMatcherBuilder {
201204
202205 private final HandlerMappingIntrospector introspector ;
203206
@@ -237,6 +240,7 @@ public MvcRequestMatcher pattern(String pattern) {
237240 * @param pattern the patterns used to match
238241 * @return the generated {@link MvcRequestMatcher}
239242 */
243+ @ Override
240244 public MvcRequestMatcher pattern (HttpMethod method , String pattern ) {
241245 MvcRequestMatcher mvcRequestMatcher = new MvcRequestMatcher (this .introspector , pattern );
242246 mvcRequestMatcher .setServletPath (this .servletPath );
You can’t perform that action at this time.
0 commit comments