public class BasePathAwareHandlerMapping extends RequestMappingHandlerMapping
RequestMappingHandlerMapping that augments the request mappingsloggerBEST_MATCHING_PATTERN_ATTRIBUTE, INTROSPECT_TYPE_LEVEL_MAPPING, 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 |
isHandler(Class<?> beanType) |
protected HandlerMethod |
lookupHandlerMethod(String lookupPath,
javax.servlet.http.HttpServletRequest request) |
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, 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, requiredContextClass, setApplicationContextpublic 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 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–2017 Pivotal Software, Inc.. All rights reserved.