@@ -202,22 +202,24 @@ private StandardInterceptUrlRegistry(ApplicationContext context) {
202
202
setApplicationContext (context );
203
203
}
204
204
205
- /**
206
- * @deprecated use {@link #requestMatchers(HttpMethod, String...)} instead
207
- */
208
205
@ Override
209
- @ Deprecated
210
- public MvcMatchersAuthorizedUrl mvcMatchers (HttpMethod method , String ... mvcPatterns ) {
211
- return new MvcMatchersAuthorizedUrl (createMvcMatchers (method , mvcPatterns ));
206
+ public AuthorizedUrl requestMatchers (String ... patterns ) {
207
+ return super .requestMatchers (patterns );
208
+ }
209
+
210
+ @ Override
211
+ public AuthorizedUrl requestMatchers (HttpMethod method , String ... patterns ) {
212
+ return super .requestMatchers (method , patterns );
212
213
}
213
214
214
- /**
215
- * @deprecated use {@link #requestMatchers(String...)} instead
216
- */
217
215
@ Override
218
- @ Deprecated
219
- public MvcMatchersAuthorizedUrl mvcMatchers (String ... patterns ) {
220
- return mvcMatchers (null , patterns );
216
+ public AuthorizedUrl requestMatchers (HttpMethod method ) {
217
+ return super .requestMatchers (method );
218
+ }
219
+
220
+ @ Override
221
+ public AuthorizedUrl requestMatchers (RequestMatcher ... requestMatchers ) {
222
+ return super .requestMatchers (requestMatchers );
221
223
}
222
224
223
225
@ Override
@@ -242,32 +244,6 @@ public H and() {
242
244
243
245
}
244
246
245
- /**
246
- * An {@link AuthorizedUrl} that allows optionally configuring the
247
- * {@link MvcRequestMatcher#setMethod(HttpMethod)}
248
- *
249
- * @author Rob Winch
250
- */
251
- public final class MvcMatchersAuthorizedUrl extends AuthorizedUrl {
252
-
253
- /**
254
- * Creates a new instance
255
- * @param requestMatchers the {@link RequestMatcher} instances to map
256
- */
257
- private MvcMatchersAuthorizedUrl (List <MvcRequestMatcher > requestMatchers ) {
258
- super (requestMatchers );
259
- }
260
-
261
- @ SuppressWarnings ("unchecked" )
262
- public AuthorizedUrl servletPath (String servletPath ) {
263
- for (MvcRequestMatcher matcher : (List <MvcRequestMatcher >) getMatchers ()) {
264
- matcher .setServletPath (servletPath );
265
- }
266
- return this ;
267
- }
268
-
269
- }
270
-
271
247
/**
272
248
* Maps the specified {@link RequestMatcher} instances to {@link ConfigAttribute}
273
249
* instances.
0 commit comments