Overloaded methods in InterceptorRegistration
Issue: SPR-16324
This commit is contained in:
committed by
Rossen Stoyanchev
parent
45828cb934
commit
cb8ad46564
@@ -64,6 +64,14 @@ public class InterceptorRegistration {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add URL patterns as list to which the registered interceptor should apply to.
|
||||||
|
*/
|
||||||
|
public InterceptorRegistration addPathPatterns(List<String> patterns) {
|
||||||
|
this.includePatterns.addAll(patterns);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add URL patterns to which the registered interceptor should not apply to.
|
* Add URL patterns to which the registered interceptor should not apply to.
|
||||||
*/
|
*/
|
||||||
@@ -72,6 +80,14 @@ public class InterceptorRegistration {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add URL patterns as list to which the registered interceptor should not apply to.
|
||||||
|
*/
|
||||||
|
public InterceptorRegistration excludePathPatterns(List<String> patterns) {
|
||||||
|
this.excludePatterns.addAll(patterns);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A PathMatcher implementation to use with this interceptor. This is an optional,
|
* A PathMatcher implementation to use with this interceptor. This is an optional,
|
||||||
* advanced property required only if using custom PathMatcher implementations
|
* advanced property required only if using custom PathMatcher implementations
|
||||||
|
|||||||
Reference in New Issue
Block a user