Merge pull request #1647 from izeye:polish-20180120
* pr/1647: Polish InterceptorRegistration
This commit is contained in:
commit
0ca4cd1cf8
|
@ -60,8 +60,7 @@ public class InterceptorRegistration {
|
||||||
* Add URL patterns to which the registered interceptor should apply to.
|
* Add URL patterns to which the registered interceptor should apply to.
|
||||||
*/
|
*/
|
||||||
public InterceptorRegistration addPathPatterns(String... patterns) {
|
public InterceptorRegistration addPathPatterns(String... patterns) {
|
||||||
this.includePatterns.addAll(Arrays.asList(patterns));
|
return addPathPatterns(Arrays.asList(patterns));
|
||||||
return this;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -77,8 +76,7 @@ public class InterceptorRegistration {
|
||||||
* Add URL patterns to which the registered interceptor should not apply to.
|
* Add URL patterns to which the registered interceptor should not apply to.
|
||||||
*/
|
*/
|
||||||
public InterceptorRegistration excludePathPatterns(String... patterns) {
|
public InterceptorRegistration excludePathPatterns(String... patterns) {
|
||||||
this.excludePatterns.addAll(Arrays.asList(patterns));
|
return excludePathPatterns(Arrays.asList(patterns));
|
||||||
return this;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue