Class PrefixingRequestMappingHandlerMapping
java.lang.Object
org.springframework.context.support.ApplicationObjectSupport
org.springframework.web.context.support.WebApplicationObjectSupport
org.springframework.web.servlet.handler.AbstractHandlerMapping
org.springframework.web.servlet.handler.AbstractHandlerMethodMapping<org.springframework.web.servlet.mvc.method.RequestMappingInfo>
org.springframework.web.servlet.mvc.method.RequestMappingInfoHandlerMapping
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping
com.foreach.across.modules.web.mvc.PrefixingRequestMappingHandlerMapping
- All Implemented Interfaces:
 org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware,org.springframework.context.EmbeddedValueResolverAware,org.springframework.core.Ordered,org.springframework.web.context.ServletContextAware,org.springframework.web.servlet.handler.MatchableHandlerMapping,org.springframework.web.servlet.HandlerMapping
public class PrefixingRequestMappingHandlerMapping
extends org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping
Scans matching beans for RequestMapping annotations and (optionally) prefixes all mappings.
 Allows for reloading (re-scanning) of mappings and re-initialization of the entire mapping handler mapping.
 
WARN: interceptors are only supported once.
Since 2.0.0 also supportsCustomRequestMapping annotations on handler methods.
 Any CustomRequestCondition will be created using the AutowireCapableBeanFactory of the attached
 ApplicationContext.  Note it will be created as a new prototype bean, existing beans of that type will
 be ignored.- See Also:
 
- 
Field Summary
Fields inherited from class org.springframework.web.servlet.handler.AbstractHandlerMapping
mappingsLoggerFields inherited from class org.springframework.context.support.ApplicationObjectSupport
loggerFields inherited from interface org.springframework.web.servlet.HandlerMapping
BEST_MATCHING_HANDLER_ATTRIBUTE, BEST_MATCHING_PATTERN_ATTRIBUTE, INTROSPECT_TYPE_LEVEL_MAPPING, LOOKUP_PATH, MATRIX_VARIABLES_ATTRIBUTE, PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE, PRODUCIBLE_MEDIA_TYPES_ATTRIBUTE, URI_TEMPLATE_VARIABLES_ATTRIBUTEFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE - 
Constructor Summary
ConstructorsConstructorDescriptionPrefixingRequestMappingHandlerMapping(String prefixPath, org.springframework.aop.ClassFilter handlerMatcher) PrefixingRequestMappingHandlerMapping(org.springframework.aop.ClassFilter handlerMatcher)  - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddInterceptor(Object... interceptor) Add one ore more interceptors to the handler mapping.protected org.springframework.web.method.HandlerMethodcreateHandlerMethod(Object handler, Method method) protected org.springframework.web.servlet.mvc.method.RequestMappingInfocreateRequestMappingInfo(org.springframework.web.bind.annotation.RequestMapping requestMapping, org.springframework.web.servlet.mvc.condition.RequestCondition<?> customCondition) protected voiddetectHandlerMethods(org.springframework.context.ApplicationContext context, Object handler) protected voiddetectMappedInterceptors(List<org.springframework.web.servlet.HandlerInterceptor> mappedInterceptors) protected org.springframework.web.servlet.mvc.condition.RequestCondition<?>getCustomMethodCondition(Method method) protected org.springframework.web.servlet.mvc.condition.RequestCondition<?>getCustomTypeCondition(Class<?> handlerType) protected org.springframework.web.servlet.mvc.method.RequestMappingInfogetMappingForMethod(Method method, Class<?> handlerType) protected voidprotected booleanvoidreload()voidvoidscan(org.springframework.context.ApplicationContext context, boolean includeAncestors) Scan a particular ApplicationContext for instances.Methods inherited from class org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping
afterPropertiesSet, createRequestMappingInfo, getBuilderConfiguration, getContentNegotiationManager, getFileExtensions, getPathPrefixes, initCorsConfiguration, match, registerHandlerMethod, registerMapping, resolveEmbeddedValuesInPatterns, setContentNegotiationManager, setEmbeddedValueResolver, setPathPrefixes, setPatternParser, setUseRegisteredSuffixPatternMatch, setUseSuffixPatternMatch, setUseTrailingSlashMatch, useRegisteredSuffixPatternMatch, useSuffixPatternMatch, useTrailingSlashMatchMethods inherited from class org.springframework.web.servlet.mvc.method.RequestMappingInfoHandlerMapping
getDirectPaths, getHandlerInternal, getMappingComparator, getMappingPathPatterns, getMatchingMapping, handleMatch, handleNoMatchMethods inherited from class org.springframework.web.servlet.handler.AbstractHandlerMethodMapping
detectHandlerMethods, getCandidateBeanNames, getCorsConfiguration, getHandlerMethods, getHandlerMethodsForMappingName, getNamingStrategy, handlerMethodsInitialized, hasCorsConfigurationSource, lookupHandlerMethod, processCandidateBean, setDetectHandlerMethodsInAncestorContexts, setHandlerMethodMappingNamingStrategy, unregisterMappingMethods inherited from class org.springframework.web.servlet.handler.AbstractHandlerMapping
adaptInterceptor, extendInterceptors, formatMappingName, getAdaptedInterceptors, getCorsConfigurationSource, getCorsHandlerExecutionChain, getCorsProcessor, getDefaultHandler, getHandler, getHandlerExecutionChain, getMappedInterceptors, getOrder, getPathMatcher, getPatternParser, getUrlPathHelper, initApplicationContext, initInterceptors, initLookupPath, setAlwaysUseFullPath, setBeanName, setCorsConfigurations, setCorsConfigurationSource, setCorsProcessor, setDefaultHandler, setInterceptors, setOrder, setPathMatcher, setRemoveSemicolonContent, setUrlDecode, setUrlPathHelper, usesPathPatternsMethods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextMethods inherited from class org.springframework.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, obtainApplicationContext, requiredContextClass, setApplicationContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.web.servlet.HandlerMapping
getHandler, usesPathPatternsMethods inherited from interface org.springframework.web.servlet.handler.MatchableHandlerMapping
getPatternParser 
- 
Constructor Details
- 
PrefixingRequestMappingHandlerMapping
public PrefixingRequestMappingHandlerMapping(org.springframework.aop.ClassFilter handlerMatcher)  - 
PrefixingRequestMappingHandlerMapping
public PrefixingRequestMappingHandlerMapping(String prefixPath, org.springframework.aop.ClassFilter handlerMatcher)  
 - 
 - 
Method Details
- 
getPrefixPath
 - 
initHandlerMethods
protected void initHandlerMethods()- Overrides:
 initHandlerMethodsin classorg.springframework.web.servlet.handler.AbstractHandlerMethodMapping<org.springframework.web.servlet.mvc.method.RequestMappingInfo>
 - 
addInterceptor
Add one ore more interceptors to the handler mapping.- Parameters:
 interceptor- Interceptors to add.
 - 
rescan
 - 
reload
public void reload() - 
detectMappedInterceptors
protected void detectMappedInterceptors(List<org.springframework.web.servlet.HandlerInterceptor> mappedInterceptors) - Overrides:
 detectMappedInterceptorsin classorg.springframework.web.servlet.handler.AbstractHandlerMapping
 - 
scan
public void scan(org.springframework.context.ApplicationContext context, boolean includeAncestors) Scan a particular ApplicationContext for instances.- Parameters:
 context- that should be scannedincludeAncestors- should controllers from the parent application context be detected
 - 
detectHandlerMethods
protected void detectHandlerMethods(org.springframework.context.ApplicationContext context, Object handler)  - 
createHandlerMethod
protected org.springframework.web.method.HandlerMethod createHandlerMethod(Object handler, Method method) - Overrides:
 createHandlerMethodin classorg.springframework.web.servlet.handler.AbstractHandlerMethodMapping<org.springframework.web.servlet.mvc.method.RequestMappingInfo>
 - 
isHandler
- Overrides:
 isHandlerin classorg.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping
 - 
getMappingForMethod
protected org.springframework.web.servlet.mvc.method.RequestMappingInfo getMappingForMethod(Method method, Class<?> handlerType) - Overrides:
 getMappingForMethodin classorg.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping
 - 
createRequestMappingInfo
protected org.springframework.web.servlet.mvc.method.RequestMappingInfo createRequestMappingInfo(org.springframework.web.bind.annotation.RequestMapping requestMapping, org.springframework.web.servlet.mvc.condition.RequestCondition<?> customCondition) - Overrides:
 createRequestMappingInfoin classorg.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping
 - 
getCustomTypeCondition
protected org.springframework.web.servlet.mvc.condition.RequestCondition<?> getCustomTypeCondition(Class<?> handlerType) - Overrides:
 getCustomTypeConditionin classorg.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping
 - 
getCustomMethodCondition
protected org.springframework.web.servlet.mvc.condition.RequestCondition<?> getCustomMethodCondition(Method method) - Overrides:
 getCustomMethodConditionin classorg.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping
 
 -