private class AnnotationMethodHandlerAdapter.ServletHandlerMethodResolver extends HandlerMethodResolver
HandlerMethodResolver
.Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.reflect.Method,AnnotationMethodHandlerAdapter.RequestMappingInfo> |
mappings |
Modifier | Constructor and Description |
---|---|
private |
ServletHandlerMethodResolver(java.lang.Class<?> handlerType) |
Modifier and Type | Method and Description |
---|---|
private void |
extractHandlerMethodUriTemplates(java.lang.String mappedPattern,
java.lang.String lookupPath,
HttpServletRequest request) |
private java.lang.String |
getCombinedPattern(java.lang.String methodLevelPattern,
java.lang.String lookupPath,
HttpServletRequest request)
Determines the combined pattern for the given methodLevelPattern and path.
|
private java.lang.String |
getMatchingPattern(java.lang.String pattern,
java.lang.String lookupPath,
boolean useSuffixPattern) |
protected boolean |
isHandlerMethod(java.lang.reflect.Method method) |
java.lang.reflect.Method |
resolveHandlerMethod(HttpServletRequest request) |
private boolean |
useSuffixPattern(HttpServletRequest request) |
private boolean |
useTypeLevelMapping(HttpServletRequest request) |
getActualSessionAttributeNames, getHandlerMethods, getInitBinderMethods, getModelAttributeMethods, getTypeLevelMapping, hasHandlerMethods, hasSessionAttributes, hasTypeLevelMapping, init, isInitBinderMethod, isModelAttributeMethod, isSessionAttribute
private final java.util.Map<java.lang.reflect.Method,AnnotationMethodHandlerAdapter.RequestMappingInfo> mappings
private ServletHandlerMethodResolver(java.lang.Class<?> handlerType)
protected boolean isHandlerMethod(java.lang.reflect.Method method)
isHandlerMethod
in class HandlerMethodResolver
public java.lang.reflect.Method resolveHandlerMethod(HttpServletRequest request) throws ServletException
ServletException
private boolean useTypeLevelMapping(HttpServletRequest request)
private boolean useSuffixPattern(HttpServletRequest request)
private java.lang.String getCombinedPattern(java.lang.String methodLevelPattern, java.lang.String lookupPath, HttpServletRequest request)
Uses the following algorithm:
private java.lang.String getMatchingPattern(java.lang.String pattern, java.lang.String lookupPath, boolean useSuffixPattern)
private void extractHandlerMethodUriTemplates(java.lang.String mappedPattern, java.lang.String lookupPath, HttpServletRequest request)