类的使用
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.methodpackage.org.springframework.web.servlet.mvc.method.annotation MVC infrastructure for annotation-based handler method processing, building on theorg.springframework.web.method.annotationpackage.org.springframework.web.servlet.mvc.method中RequestMappingInfo的使用
返回RequestMappingInfo的org.springframework.web.servlet.mvc.method中的方法 修饰符和类型 方法 说明 RequestMappingInfoRequestMappingInfo.Builder. build()Build the RequestMappingInfo.RequestMappingInfoRequestMappingInfo. combine(RequestMappingInfo other)Combine "this" request mapping info (i.e. the current instance) with another request mapping info instance.RequestMappingInfoRequestMappingInfo. 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 RequestMappingInfoRequestMappingInfoHandlerMapping. 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中的方法 修饰符和类型 方法 说明 RequestMappingInfoRequestMappingInfo. combine(RequestMappingInfo other)Combine "this" request mapping info (i.e. the current instance) with another request mapping info instance.intRequestMappingInfo. 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 RequestMappingInfoRequestMappingInfoHandlerMapping. 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.StringRequestMappingInfoHandlerMethodMappingNamingStrategy. getName(HandlerMethod handlerMethod, RequestMappingInfo mapping)protected voidRequestMappingInfoHandlerMapping. 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 HandlerMethodRequestMappingInfoHandlerMapping. 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 RequestMappingInfoRequestMappingHandlerMapping. createRequestMappingInfo(RequestMapping requestMapping, RequestCondition<?> customCondition)Create aRequestMappingInfofrom the supplied@RequestMappingannotation, which is either a directly declared annotation, a meta-annotation, or the synthesized result of merging annotation attributes within an annotation hierarchy.protected RequestMappingInfoRequestMappingHandlerMapping. getMappingForMethod(Method method, Class<?> handlerType)Uses method and type-level @RequestMappingannotations to create the RequestMappingInfo.参数类型为RequestMappingInfo的org.springframework.web.servlet.mvc.method.annotation中的方法 修饰符和类型 方法 说明 protected CorsConfigurationRequestMappingHandlerMapping. initCorsConfiguration(Object handler, Method method, RequestMappingInfo mappingInfo)protected voidRequestMappingHandlerMapping. registerHandlerMethod(Object handler, Method method, RequestMappingInfo mapping)voidRequestMappingHandlerMapping. registerMapping(RequestMappingInfo mapping, Object handler, Method method)