public class FrameworkMappingHandlerMapping
extends org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping
FrameworkMappings inside
FrameworkController and FrameworkRestController classes.
When framework controllers are enabled with FrameworkControllerScan, and a class is
annotated with FrameworkController or FrameworkRestController, then this class
will add FrameworkMappings 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 or
RestController will have a higher priority and be found before FrameworkMappings found within a FrameworkController or FrameworkRestController.
The site handler mappings in play in order of precedence from highest to lowest are:
RequestMappingHandlerMappingFrameworkMappingHandlerMappingFrameworkControllerScan,
FrameworkController,
FrameworkRestController,
FrameworkMapping| Modifier and Type | Field and Description |
|---|---|
static int |
REQUEST_MAPPING_ORDER |
BEST_MATCHING_HANDLER_ATTRIBUTE, BEST_MATCHING_PATTERN_ATTRIBUTE, INTROSPECT_TYPE_LEVEL_MAPPING, MATRIX_VARIABLES_ATTRIBUTE, PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE, PRODUCIBLE_MEDIA_TYPES_ATTRIBUTE, URI_TEMPLATE_VARIABLES_ATTRIBUTE| Constructor and Description |
|---|
FrameworkMappingHandlerMapping() |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.web.servlet.mvc.method.RequestMappingInfo |
getMappingForMethod(Method method,
Class<?> handlerType) |
protected boolean |
isHandler(Class<?> beanType)
See AopUtils and ClassUtils.
|
afterPropertiesSet, createRequestMappingInfo, getContentNegotiationManager, getCustomMethodCondition, getCustomTypeCondition, getFileExtensions, initCorsConfiguration, match, 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, setServletContextgetApplicationContext, getMessageSourceAccessor, obtainApplicationContext, requiredContextClass, setApplicationContextpublic static final int REQUEST_MAPPING_ORDER
protected boolean isHandler(Class<?> beanType)
isHandler in class org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMappingAOPUtils,
ClassUtils,
AnnotationUtils,
AnnotatedElementUtilsCopyright © 2019. All rights reserved.