public class BasePathAwareHandlerMapping extends RequestMappingHandlerMapping
RequestMappingHandlerMapping that augments the request mappingsloggerBEST_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_ATTRIBUTEHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
BasePathAwareHandlerMapping(RepositoryRestConfiguration configuration)
Creates a new
BasePathAwareHandlerMapping using the given RepositoryRestConfiguration. |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected PatternsRequestCondition |
customize(PatternsRequestCondition condition,
String prefix)
Customize the given
PatternsRequestCondition and prefix. |
protected ProducesRequestCondition |
customize(ProducesRequestCondition condition)
Customize the given
ProducesRequestCondition. |
protected RequestMappingInfo |
getMappingForMethod(Method method,
Class<?> handlerType) |
protected boolean |
hasCorsConfigurationSource(Object handler) |
protected boolean |
isHandler(Class<?> beanType) |
protected HandlerMethod |
lookupHandlerMethod(String lookupPath,
javax.servlet.http.HttpServletRequest request) |
createRequestMappingInfo, getContentNegotiationManager, getCustomMethodCondition, getCustomTypeCondition, getFileExtensions, getHandlerInternal, getPathPrefixes, initCorsConfiguration, match, registerHandlerMethod, registerMapping, resolveEmbeddedValuesInPatterns, setContentNegotiationManager, setEmbeddedValueResolver, setPathPrefixes, setUseRegisteredSuffixPatternMatch, setUseSuffixPatternMatch, setUseTrailingSlashMatch, useRegisteredSuffixPatternMatch, useSuffixPatternMatch, useTrailingSlashMatchgetMappingComparator, getMappingPathPatterns, getMatchingMapping, handleMatch, handleNoMatchcreateHandlerMethod, detectHandlerMethods, getCandidateBeanNames, getCorsConfiguration, getHandlerMethods, getHandlerMethodsForMappingName, getNamingStrategy, handlerMethodsInitialized, initHandlerMethods, processCandidateBean, setDetectHandlerMethodsInAncestorContexts, setHandlerMethodMappingNamingStrategy, unregisterMappingadaptInterceptor, detectMappedInterceptors, extendInterceptors, formatMappingName, getAdaptedInterceptors, getCorsHandlerExecutionChain, getCorsProcessor, getDefaultHandler, getHandler, getHandlerExecutionChain, getMappedInterceptors, getOrder, getPathMatcher, getUrlPathHelper, initApplicationContext, initInterceptors, setAlwaysUseFullPath, setBeanName, setCorsConfigurations, setCorsConfigurationSource, setCorsProcessor, setDefaultHandler, setInterceptors, setOrder, setPathMatcher, setRemoveSemicolonContent, setUrlDecode, setUrlPathHelpergetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextgetApplicationContext, getMessageSourceAccessor, obtainApplicationContext, requiredContextClass, setApplicationContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHandlerpublic BasePathAwareHandlerMapping(RepositoryRestConfiguration configuration)
BasePathAwareHandlerMapping using the given RepositoryRestConfiguration.configuration - must not be null.protected HandlerMethod lookupHandlerMethod(String lookupPath, javax.servlet.http.HttpServletRequest request) throws Exception
lookupHandlerMethod in class AbstractHandlerMethodMapping<RequestMappingInfo>Exceptionprotected boolean hasCorsConfigurationSource(Object handler)
hasCorsConfigurationSource in class AbstractHandlerMethodMapping<RequestMappingInfo>protected RequestMappingInfo getMappingForMethod(Method method, Class<?> handlerType)
getMappingForMethod in class RequestMappingHandlerMappingprotected PatternsRequestCondition customize(PatternsRequestCondition condition, String prefix)
PatternsRequestCondition and prefix.condition - will never be null.prefix - will never be null.protected ProducesRequestCondition customize(ProducesRequestCondition condition)
ProducesRequestCondition. Default implementation returns the condition as is.condition - will never be null.protected boolean isHandler(Class<?> beanType)
isHandler in class RequestMappingHandlerMappingpublic void afterPropertiesSet()
afterPropertiesSet in interface InitializingBeanafterPropertiesSet in class RequestMappingHandlerMappingCopyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.