mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-04 09:42:29 +00:00
Reformat MvcRequestMatcher
- Moved related private methods together Issue gh-9284
This commit is contained in:
parent
8449df9fd2
commit
160a4a3676
@ -76,15 +76,6 @@ public class MvcRequestMatcher implements RequestMatcher, RequestVariablesExtrac
|
|||||||
return matchResult != null;
|
return matchResult != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
private MatchableHandlerMapping getMapping(HttpServletRequest request) {
|
|
||||||
try {
|
|
||||||
return this.introspector.getMatchableHandlerMapping(request);
|
|
||||||
}
|
|
||||||
catch (Throwable ex) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public Map<String, String> extractUriTemplateVariables(HttpServletRequest request) {
|
public Map<String, String> extractUriTemplateVariables(HttpServletRequest request) {
|
||||||
@ -109,6 +100,15 @@ public class MvcRequestMatcher implements RequestMatcher, RequestVariablesExtrac
|
|||||||
|| this.servletPath != null && !this.servletPath.equals(request.getServletPath());
|
|| this.servletPath != null && !this.servletPath.equals(request.getServletPath());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private MatchableHandlerMapping getMapping(HttpServletRequest request) {
|
||||||
|
try {
|
||||||
|
return this.introspector.getMatchableHandlerMapping(request);
|
||||||
|
}
|
||||||
|
catch (Throwable ex) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param method the method to set
|
* @param method the method to set
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user