public class BasePathAwareHandlerMapping
extends org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping
RequestMappingHandlerMapping that augments the request mappings| Constructor and Description |
|---|
BasePathAwareHandlerMapping(RepositoryRestConfiguration configuration)
Creates a new
BasePathAwareHandlerMapping using the given RepositoryRestConfiguration. |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected org.springframework.web.servlet.mvc.condition.PatternsRequestCondition |
customize(org.springframework.web.servlet.mvc.condition.PatternsRequestCondition condition,
String prefix)
Customize the given
PatternsRequestCondition and prefix. |
protected org.springframework.web.servlet.mvc.condition.ProducesRequestCondition |
customize(org.springframework.web.servlet.mvc.condition.ProducesRequestCondition condition)
Customize the given
ProducesRequestCondition. |
protected org.springframework.web.servlet.mvc.method.RequestMappingInfo |
getMappingForMethod(Method method,
Class<?> handlerType) |
protected boolean |
isHandler(Class<?> beanType) |
protected org.springframework.web.method.HandlerMethod |
lookupHandlerMethod(String lookupPath,
javax.servlet.http.HttpServletRequest request) |
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, 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 org.springframework.web.method.HandlerMethod lookupHandlerMethod(String lookupPath, javax.servlet.http.HttpServletRequest request) throws Exception
lookupHandlerMethod in class org.springframework.web.servlet.handler.AbstractHandlerMethodMapping<org.springframework.web.servlet.mvc.method.RequestMappingInfo>Exceptionprotected org.springframework.web.servlet.mvc.method.RequestMappingInfo getMappingForMethod(Method method, Class<?> handlerType)
getMappingForMethod in class org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMappingprotected org.springframework.web.servlet.mvc.condition.PatternsRequestCondition customize(org.springframework.web.servlet.mvc.condition.PatternsRequestCondition condition,
String prefix)
PatternsRequestCondition and prefix.condition - will never be null.prefix - will never be null.protected org.springframework.web.servlet.mvc.condition.ProducesRequestCondition customize(org.springframework.web.servlet.mvc.condition.ProducesRequestCondition condition)
ProducesRequestCondition. Default implementation returns the condition as is.condition - will never be null.protected boolean isHandler(Class<?> beanType)
isHandler in class org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMappingpublic void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanafterPropertiesSet in class org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMappingCopyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.