@Component
public class FrameworkControllerHandlerMapping
extends org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping
RequestMappings inside FrameworkController and FrameworkRestController classes.
When framework controllers are enabled with EnableFrameworkControllers and a class is annotated with FrameworkController or FrameworkRestController then this class will add RequestMappings found within the class to handler mappings. This class has a
lower priority than the default RequestMappingHandlerMapping
so when a request comes in, RequestMappings located inside a class
annotated with Controller with have a higher priority and be found before
RequestMappings found within a FrameworkController or FrameworkRestController.
EnableFrameworkControllers,
FrameworkController,
FrameworkRestController| Constructor and Description |
|---|
FrameworkControllerHandlerMapping() |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.web.servlet.mvc.method.RequestMappingInfo |
combineParentRequestMapping(org.springframework.web.bind.annotation.RequestMapping parentRequestMapping,
org.springframework.web.servlet.mvc.method.RequestMappingInfo requestMappingInfo) |
protected org.springframework.web.servlet.mvc.method.RequestMappingInfo |
getMappingForMethod(Method method,
Class<?> handlerType) |
protected boolean |
isHandler(Class<?> beanType) |
afterPropertiesSet, createRequestMappingInfo, getContentNegotiationManager, getCustomMethodCondition, getCustomTypeCondition, getFileExtensions, initCorsConfiguration, resolveEmbeddedValuesInPatterns, setContentNegotiationManager, setEmbeddedValueResolver, setUseRegisteredSuffixPatternMatch, setUseSuffixPatternMatch, setUseTrailingSlashMatch, useRegisteredSuffixPatternMatch, useSuffixPatternMatch, useTrailingSlashMatchgetMappingComparator, getMappingPathPatterns, getMatchingMapping, handleMatch, handleNoMatchcreateHandlerMethod, detectHandlerMethods, getCorsConfiguration, getHandlerInternal, getHandlerMethods, getHandlerMethodsForMappingName, getNamingStrategy, handlerMethodsInitialized, initHandlerMethods, lookupHandlerMethod, registerHandlerMethod, registerMapping, setDetectHandlerMethodsInAncestorContexts, setHandlerMethodMappingNamingStrategy, unregisterMappingadaptInterceptor, detectMappedInterceptors, extendInterceptors, getAdaptedInterceptors, getCorsConfigurations, getCorsHandlerExecutionChain, getCorsProcessor, getDefaultHandler, getHandler, getHandlerExecutionChain, getMappedInterceptors, getOrder, getPathMatcher, getUrlPathHelper, initApplicationContext, initInterceptors, setAlwaysUseFullPath, setCorsConfigurations, setCorsProcessor, setDefaultHandler, setInterceptors, setOrder, setPathMatcher, setRemoveSemicolonContent, setUrlDecode, setUrlPathHelpergetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextprotected boolean isHandler(Class<?> beanType)
isHandler in class org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMappingprotected org.springframework.web.servlet.mvc.method.RequestMappingInfo getMappingForMethod(Method method, Class<?> handlerType)
getMappingForMethod in class org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMappingprotected org.springframework.web.servlet.mvc.method.RequestMappingInfo combineParentRequestMapping(org.springframework.web.bind.annotation.RequestMapping parentRequestMapping,
org.springframework.web.servlet.mvc.method.RequestMappingInfo requestMappingInfo)
Copyright © 2016. All rights reserved.