public class BaseUriAwareHandlerMapping extends RequestMappingHandlerMapping
RequestMappingHandlerMapping that uses the base URI configured in the
RepositoryRestConfiguration, strips it from incoming requests in case they start with it and hands the
altered URI to the superclass for normal handler method lookup.loggerBEST_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 |
|---|
BaseUriAwareHandlerMapping(RepositoryRestConfiguration configuration)
Creates a new
BaseUriAwareHandlerMapping using the given RepositoryRestConfiguration. |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isHandler(Class<?> beanType) |
protected HandlerMethod |
lookupHandlerMethod(String lookupPath,
javax.servlet.http.HttpServletRequest request) |
protected boolean |
supportsLookupPath(String lookupPath) |
afterPropertiesSet, createRequestMappingInfo, getContentNegotiationManager, getCustomMethodCondition, getCustomTypeCondition, getFileExtensions, getMappingForMethod, resolveEmbeddedValuesInPatterns, setContentNegotiationManager, setEmbeddedValueResolver, setUseRegisteredSuffixPatternMatch, setUseSuffixPatternMatch, setUseTrailingSlashMatch, useRegisteredSuffixPatternMatch, useSuffixPatternMatch, useTrailingSlashMatchgetMappingComparator, getMappingPathPatterns, getMatchingMapping, handleMatch, handleNoMatchcreateHandlerMethod, detectHandlerMethods, getHandlerInternal, getHandlerMethods, handlerMethodsInitialized, initHandlerMethods, registerHandlerMethod, setDetectHandlerMethodsInAncestorContextsadaptInterceptor, detectMappedInterceptors, extendInterceptors, getAdaptedInterceptors, getDefaultHandler, getHandler, getHandlerExecutionChain, getMappedInterceptors, getOrder, getPathMatcher, getUrlPathHelper, initApplicationContext, initInterceptors, setAlwaysUseFullPath, setDefaultHandler, setInterceptors, setOrder, setPathMatcher, setRemoveSemicolonContent, setUrlDecode, setUrlPathHelpergetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextgetApplicationContext, getMessageSourceAccessor, requiredContextClass, setApplicationContextpublic BaseUriAwareHandlerMapping(RepositoryRestConfiguration configuration)
BaseUriAwareHandlerMapping 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 supportsLookupPath(String lookupPath)
protected boolean isHandler(Class<?> beanType)
isHandler in class RequestMappingHandlerMappingCopyright © 2011-2014–2015 Pivotal Software, Inc.. All rights reserved.