public class BasePathAwareHandlerMapping extends RequestMappingHandlerMapping
RequestMappingHandlerMapping that augments the request mappingsmappingsLoggerloggerBEST_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 |
|---|---|
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)
Deprecated.
for overriding in 3.6. Will be made final in 4.0.
|
protected boolean |
isHandlerInternal(Class<?> type)
Returns whether the given controller type is considered a handler.
|
protected HandlerMethod |
lookupHandlerMethod(String lookupPath,
javax.servlet.http.HttpServletRequest request) |
afterPropertiesSet, createRequestMappingInfo, getBuilderConfiguration, getContentNegotiationManager, getCustomMethodCondition, getCustomTypeCondition, getFileExtensions, getPathPrefixes, initCorsConfiguration, match, registerHandlerMethod, registerMapping, resolveEmbeddedValuesInPatterns, setContentNegotiationManager, setEmbeddedValueResolver, setPathPrefixes, setUseRegisteredSuffixPatternMatch, setUseSuffixPatternMatch, setUseTrailingSlashMatch, useRegisteredSuffixPatternMatch, useSuffixPatternMatch, useTrailingSlashMatchgetDirectPaths, getHandlerInternal, getMappingComparator, getMappingPathPatterns, getMatchingMapping, handleMatch, handleNoMatchcreateHandlerMethod, detectHandlerMethods, getCandidateBeanNames, getCorsConfiguration, getHandlerMethods, getHandlerMethodsForMappingName, getNamingStrategy, handlerMethodsInitialized, initHandlerMethods, processCandidateBean, setDetectHandlerMethodsInAncestorContexts, setHandlerMethodMappingNamingStrategy, setPatternParser, unregisterMappingadaptInterceptor, detectMappedInterceptors, extendInterceptors, formatMappingName, getAdaptedInterceptors, getCorsConfigurationSource, getCorsHandlerExecutionChain, getCorsProcessor, getDefaultHandler, getHandler, getHandlerExecutionChain, getMappedInterceptors, getOrder, getPathMatcher, getPatternParser, getUrlPathHelper, initApplicationContext, initInterceptors, initLookupPath, setAlwaysUseFullPath, setBeanName, setCorsConfigurations, setCorsConfigurationSource, setCorsProcessor, setDefaultHandler, setInterceptors, setOrder, setPathMatcher, setRemoveSemicolonContent, setUrlDecode, setUrlPathHelper, usesPathPatternsgetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextgetApplicationContext, getMessageSourceAccessor, obtainApplicationContext, requiredContextClass, setApplicationContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPatternParsergetHandler, usesPathPatternspublic 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 ProducesRequestCondition customize(ProducesRequestCondition condition)
ProducesRequestCondition. Default implementation returns the condition as is.condition - will never be null.@Deprecated protected boolean isHandler(Class<?> beanType)
isHandlerInternal(Class). Will be made final in 4.0.isHandler in class RequestMappingHandlerMappingRequestMappingHandlerMapping.isHandler(java.lang.Class)protected boolean isHandlerInternal(Class<?> type)
type - will never be null.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.