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, useTrailingSlashMatchgetMappingComparator, getMappingPathPatterns, getMatchingMapping, handleMatch, handleNoMatchafterPropertiesSet, detectHandlerMethods, getHandlerInternal, getHandlerMethods, handlerMethodsInitialized, initHandlerMethods, registerHandlerMethod, setDetectHandlerMethodsInAncestorContextsadaptInterceptor, detectMappedInterceptors, getAdaptedInterceptors, getDefaultHandler, getHandler, getHandlerExecutionChain, getMappedInterceptors, getOrder, getPathMatcher, getUrlPathHelper, initApplicationContext, initInterceptors, setAlwaysUseFullPath, setDefaultHandler, setInterceptors, setOrder, setPathMatcher, setUrlDecode, setUrlPathHelpergetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextprotected 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.Exceptionprotected boolean isHandler(java.lang.Class<?> beanType)
isHandler in class org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMappingprotected void extendInterceptors(java.util.List<java.lang.Object> interceptors)
extendInterceptors in class org.springframework.web.servlet.handler.AbstractHandlerMapping