public abstract class AbstractConventionHandlerMethodResolver extends Object implements CustomHandlerMethodResolver
Constructor and Description |
---|
AbstractConventionHandlerMethodResolver(Class<?> handlerType,
ConventionHelper conventionHelper) |
Modifier and Type | Method and Description |
---|---|
protected abstract List<String> |
doResolve(String uriBase,
Method method) |
protected String |
generateUriKey(javax.servlet.http.HttpServletRequest request,
String lookupPath) |
Collection<Method> |
getAllHandlerMethods() |
Set<String> |
getAllResolvedUrls() |
Method |
getHandlerMethod(javax.servlet.http.HttpServletRequest request)
如果请求uri有后缀,需要忽略
|
protected Method |
getHandlerMethod(String urlKey) |
Class<?> |
getHandlerType() |
protected org.springframework.util.PathMatcher |
getPathMatcher() |
protected org.springframework.web.util.UrlPathHelper |
getUrlPathHelper() |
protected boolean |
isPathMatchInternal(String pattern,
String lookupPath) |
protected boolean |
qualify(Method method) |
protected void |
registerHandlerMethod(String urlKey,
Method handlerMethod) |
Set<String> |
resolve() |
void |
setQualifier(Qualifier qualifier) |
public AbstractConventionHandlerMethodResolver(Class<?> handlerType, ConventionHelper conventionHelper)
public void setQualifier(Qualifier qualifier)
public Class<?> getHandlerType()
getHandlerType
in interface CustomHandlerMethodResolver
public Collection<Method> getAllHandlerMethods()
public Method getHandlerMethod(javax.servlet.http.HttpServletRequest request)
getHandlerMethod
in interface CustomHandlerMethodResolver
protected String generateUriKey(javax.servlet.http.HttpServletRequest request, String lookupPath)
protected org.springframework.web.util.UrlPathHelper getUrlPathHelper()
protected org.springframework.util.PathMatcher getPathMatcher()
public Set<String> resolve()
resolve
in interface CustomHandlerMethodResolver
protected boolean qualify(Method method)
Copyright © 2006–2018 TinyGroup. All rights reserved.