类的使用
org.springframework.web.servlet.mvc.method.RequestMappingInfo
使用RequestMappingInfo的程序包 程序包 说明 org.springframework.web.servlet.mvc.method Servlet-based infrastructure for handler method processing, building on theorg.springframework.web.method
package.org.springframework.web.servlet.mvc.method.annotation MVC infrastructure for annotation-based handler method processing, building on theorg.springframework.web.method.annotation
package.org.springframework.web.servlet.mvc.method中RequestMappingInfo的使用
返回RequestMappingInfo的org.springframework.web.servlet.mvc.method中的方法 修饰符和类型 方法 说明 RequestMappingInfo
RequestMappingInfo.Builder. build()
Build the RequestMappingInfo.RequestMappingInfo
RequestMappingInfo. combine(RequestMappingInfo other)
Combine "this" request mapping info (i.e. the current instance) with another request mapping info instance.RequestMappingInfo
RequestMappingInfo. getMatchingCondition(HttpServletRequest request)
Checks if all conditions in this request mapping info match the provided request and returns a potentially new request mapping info with conditions tailored to the current request.protected RequestMappingInfo
RequestMappingInfoHandlerMapping. getMatchingMapping(RequestMappingInfo info, HttpServletRequest request)
Check if the given RequestMappingInfo matches the current request and return a (potentially new) instance with conditions that match the current request -- for example with a subset of URL patterns.返回变量类型为RequestMappingInfo的类型的org.springframework.web.servlet.mvc.method中的方法 修饰符和类型 方法 说明 protected Comparator<RequestMappingInfo>
RequestMappingInfoHandlerMapping. getMappingComparator(HttpServletRequest request)
Provide a Comparator to sort RequestMappingInfos matched to a request.参数类型为RequestMappingInfo的org.springframework.web.servlet.mvc.method中的方法 修饰符和类型 方法 说明 RequestMappingInfo
RequestMappingInfo. combine(RequestMappingInfo other)
Combine "this" request mapping info (i.e. the current instance) with another request mapping info instance.int
RequestMappingInfo. compareTo(RequestMappingInfo other, HttpServletRequest request)
Compares "this" info (i.e. the current instance) with another info in the context of a request.protected Set<String>
RequestMappingInfoHandlerMapping. getMappingPathPatterns(RequestMappingInfo info)
Get the URL path patterns associated with the suppliedRequestMappingInfo
.protected RequestMappingInfo
RequestMappingInfoHandlerMapping. getMatchingMapping(RequestMappingInfo info, HttpServletRequest request)
Check if the given RequestMappingInfo matches the current request and return a (potentially new) instance with conditions that match the current request -- for example with a subset of URL patterns.String
RequestMappingInfoHandlerMethodMappingNamingStrategy. getName(HandlerMethod handlerMethod, RequestMappingInfo mapping)
protected void
RequestMappingInfoHandlerMapping. handleMatch(RequestMappingInfo info, String lookupPath, HttpServletRequest request)
Expose URI template variables, matrix variables, and producible media types in the request.类型变量类型为RequestMappingInfo的org.springframework.web.servlet.mvc.method中的方法参数 修饰符和类型 方法 说明 protected HandlerMethod
RequestMappingInfoHandlerMapping. handleNoMatch(Set<RequestMappingInfo> infos, String lookupPath, HttpServletRequest request)
Iterate all RequestMappingInfo's once again, look if any match by URL at least and raise exceptions according to what doesn't match.参数类型为RequestMappingInfo的org.springframework.web.servlet.mvc.method中的构造器 构造器 说明 RequestMappingInfo(RequestMappingInfo info, RequestCondition<?> customRequestCondition)
Re-create a RequestMappingInfo with the given custom request condition.org.springframework.web.servlet.mvc.method.annotation中RequestMappingInfo的使用
返回RequestMappingInfo的org.springframework.web.servlet.mvc.method.annotation中的方法 修饰符和类型 方法 说明 protected RequestMappingInfo
RequestMappingHandlerMapping. createRequestMappingInfo(RequestMapping requestMapping, RequestCondition<?> customCondition)
Create aRequestMappingInfo
from the supplied@RequestMapping
annotation, which is either a directly declared annotation, a meta-annotation, or the synthesized result of merging annotation attributes within an annotation hierarchy.protected RequestMappingInfo
RequestMappingHandlerMapping. getMappingForMethod(Method method, Class<?> handlerType)
Uses method and type-level @RequestMapping
annotations to create the RequestMappingInfo.参数类型为RequestMappingInfo的org.springframework.web.servlet.mvc.method.annotation中的方法 修饰符和类型 方法 说明 protected CorsConfiguration
RequestMappingHandlerMapping. initCorsConfiguration(Object handler, Method method, RequestMappingInfo mappingInfo)
protected void
RequestMappingHandlerMapping. registerHandlerMethod(Object handler, Method method, RequestMappingInfo mapping)
void
RequestMappingHandlerMapping. registerMapping(RequestMappingInfo mapping, Object handler, Method method)