public class RepositoryRestHandlerMapping extends BasePathAwareHandlerMapping
RequestMappingHandlerMapping implementation that will only find a handler method if a
Repository is exported under that URL path segment. Also ensures the
OpenEntityManagerInViewInterceptor is registered in the application context. The OEMIVI is required for the
REST exporter to function properly.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 |
|---|
RepositoryRestHandlerMapping(ResourceMappings mappings,
RepositoryRestConfiguration config)
Creates a new
RepositoryRestHandlerMapping for the given ResourceMappings and
RepositoryRestConfiguration. |
| Modifier and Type | Method and Description |
|---|---|
protected ProducesRequestCondition |
customize(ProducesRequestCondition condition)
Customize the given
ProducesRequestCondition. |
protected void |
extendInterceptors(List<Object> interceptors) |
protected HandlerMethod |
handleNoMatch(Set<RequestMappingInfo> requestMappingInfos,
String lookupPath,
javax.servlet.http.HttpServletRequest request) |
protected boolean |
isHandler(Class<?> beanType) |
protected HandlerMethod |
lookupHandlerMethod(String lookupPath,
javax.servlet.http.HttpServletRequest request) |
void |
setJpaHelper(JpaHelper jpaHelper) |
afterPropertiesSet, customize, getMappingForMethodcreateRequestMappingInfo, getContentNegotiationManager, getCustomMethodCondition, getCustomTypeCondition, getFileExtensions, initCorsConfiguration, resolveEmbeddedValuesInPatterns, setContentNegotiationManager, setEmbeddedValueResolver, setUseRegisteredSuffixPatternMatch, setUseSuffixPatternMatch, setUseTrailingSlashMatch, useRegisteredSuffixPatternMatch, useSuffixPatternMatch, useTrailingSlashMatchgetMappingComparator, getMappingPathPatterns, getMatchingMapping, handleMatchcreateHandlerMethod, detectHandlerMethods, getCorsConfiguration, getHandlerInternal, getHandlerMethods, getHandlerMethodsForMappingName, getNamingStrategy, handlerMethodsInitialized, initHandlerMethods, registerHandlerMethod, registerMapping, setDetectHandlerMethodsInAncestorContexts, setHandlerMethodMappingNamingStrategy, unregisterMappingadaptInterceptor, detectMappedInterceptors, 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 RepositoryRestHandlerMapping(ResourceMappings mappings, RepositoryRestConfiguration config)
RepositoryRestHandlerMapping for the given ResourceMappings and
RepositoryRestConfiguration.mappings - must not be null.config - must not be null.public void setJpaHelper(JpaHelper jpaHelper)
jpaHelper - the jpaHelper to setprotected HandlerMethod lookupHandlerMethod(String lookupPath, javax.servlet.http.HttpServletRequest request) throws Exception
lookupHandlerMethod in class BasePathAwareHandlerMappingExceptionprotected HandlerMethod handleNoMatch(Set<RequestMappingInfo> requestMappingInfos, String lookupPath, javax.servlet.http.HttpServletRequest request) throws javax.servlet.ServletException
handleNoMatch in class RequestMappingInfoHandlerMappingjavax.servlet.ServletExceptionprotected boolean isHandler(Class<?> beanType)
isHandler in class BasePathAwareHandlerMappingprotected void extendInterceptors(List<Object> interceptors)
extendInterceptors in class AbstractHandlerMappingprotected ProducesRequestCondition customize(ProducesRequestCondition condition)
BasePathAwareHandlerMappingProducesRequestCondition. Default implementation returns the condition as is.customize in class BasePathAwareHandlerMappingcondition - will never be null.Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.