public class BasePathAwareHandlerMapping extends RequestMappingHandlerMapping
RequestMappingHandlerMapping
that augments the request mappingslogger
BEST_MATCHING_PATTERN_ATTRIBUTE, INTROSPECT_TYPE_LEVEL_MAPPING, MATRIX_VARIABLES_ATTRIBUTE, PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE, PRODUCIBLE_MEDIA_TYPES_ATTRIBUTE, URI_TEMPLATE_VARIABLES_ATTRIBUTE
HIGHEST_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, resolveEmbeddedValuesInPatterns, setContentNegotiationManager, setEmbeddedValueResolver, setUseRegisteredSuffixPatternMatch, setUseSuffixPatternMatch, setUseTrailingSlashMatch, useRegisteredSuffixPatternMatch, useSuffixPatternMatch, useTrailingSlashMatch
getMappingComparator, getMappingPathPatterns, getMatchingMapping, handleMatch, handleNoMatch
createHandlerMethod, detectHandlerMethods, getHandlerInternal, getHandlerMethods, getHandlerMethodsForMappingName, handlerMethodsInitialized, initHandlerMethods, registerHandlerMethod, setDetectHandlerMethodsInAncestorContexts, setHandlerMethodMappingNamingStrategy
adaptInterceptor, detectMappedInterceptors, extendInterceptors, getAdaptedInterceptors, getDefaultHandler, getHandler, getHandlerExecutionChain, getMappedInterceptors, getOrder, getPathMatcher, getUrlPathHelper, initApplicationContext, initInterceptors, setAlwaysUseFullPath, setDefaultHandler, setInterceptors, setOrder, setPathMatcher, setRemoveSemicolonContent, setUrlDecode, setUrlPathHelper
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
getApplicationContext, getMessageSourceAccessor, requiredContextClass, setApplicationContext
public 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>
Exception
protected RequestMappingInfo getMappingForMethod(Method method, Class<?> handlerType)
getMappingForMethod
in class RequestMappingHandlerMapping
protected 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 RequestMappingHandlerMapping
public void afterPropertiesSet()
afterPropertiesSet
in interface InitializingBean
afterPropertiesSet
in class RequestMappingHandlerMapping
Copyright © 2011-2015–2016 Pivotal Software, Inc.. All rights reserved.