public class RepositoryRestHandlerMapping
extends org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping
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.Constructor and Description |
---|
RepositoryRestHandlerMapping() |
Modifier and Type | Method and Description |
---|---|
protected void |
extendInterceptors(java.util.List<java.lang.Object> interceptors) |
protected boolean |
isHandler(java.lang.Class<?> beanType) |
protected org.springframework.web.method.HandlerMethod |
lookupHandlerMethod(java.lang.String lookupPath,
javax.servlet.http.HttpServletRequest request) |
getCustomMethodCondition, getCustomTypeCondition, getMappingForMethod, setUseSuffixPatternMatch, setUseTrailingSlashMatch, useSuffixPatternMatch, useTrailingSlashMatch
getMappingComparator, getMappingPathPatterns, getMatchingMapping, handleMatch, handleNoMatch
afterPropertiesSet, detectHandlerMethods, getHandlerInternal, getHandlerMethods, handlerMethodsInitialized, initHandlerMethods, registerHandlerMethod, setDetectHandlerMethodsInAncestorContexts
adaptInterceptor, detectMappedInterceptors, getAdaptedInterceptors, getDefaultHandler, getHandler, getHandlerExecutionChain, getMappedInterceptors, getOrder, getPathMatcher, getUrlPathHelper, initApplicationContext, initInterceptors, setAlwaysUseFullPath, setDefaultHandler, setInterceptors, setOrder, setPathMatcher, setUrlDecode, setUrlPathHelper
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
protected org.springframework.web.method.HandlerMethod lookupHandlerMethod(java.lang.String lookupPath, javax.servlet.http.HttpServletRequest request) throws java.lang.Exception
lookupHandlerMethod
in class org.springframework.web.servlet.handler.AbstractHandlerMethodMapping<org.springframework.web.servlet.mvc.method.RequestMappingInfo>
java.lang.Exception
protected boolean isHandler(java.lang.Class<?> beanType)
isHandler
in class org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping
protected void extendInterceptors(java.util.List<java.lang.Object> interceptors)
extendInterceptors
in class org.springframework.web.servlet.handler.AbstractHandlerMapping