Class RepositoryRestHandlerAdapter
java.lang.Object
org.springframework.context.support.ApplicationObjectSupport
org.springframework.web.context.support.WebApplicationObjectSupport
org.springframework.web.servlet.support.WebContentGenerator
org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter
org.springframework.data.rest.webmvc.RepositoryRestHandlerAdapter
- All Implemented Interfaces:
Aware,BeanFactoryAware,InitializingBean,ApplicationContextAware,Ordered,ServletContextAware,HandlerAdapter
RequestMappingHandlerAdapter implementation that adds a couple argument resolvers for controller method
parameters used in the REST exporter controller. Also only looks for handler methods in the Spring Data REST provided
controller classes to help isolate this handler adapter from other handler adapters the user might have configured in
their Spring MVC context.- Author:
- Jon Brisbin, Oliver Gierke
-
Field Summary
Fields inherited from class org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter
INIT_BINDER_METHODS, MODEL_ATTRIBUTE_METHODSFields inherited from class org.springframework.web.servlet.support.WebContentGenerator
HEADER_CACHE_CONTROL, METHOD_GET, METHOD_HEAD, METHOD_POSTFields inherited from class org.springframework.context.support.ApplicationObjectSupport
loggerFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionRepositoryRestHandlerAdapter(List<HandlerMethodArgumentResolver> argumentResolvers) Creates a newRepositoryRestHandlerAdapterusing the givenHandlerMethodArgumentResolvers. -
Method Summary
Modifier and TypeMethodDescriptionvoidintgetOrder()protected booleansupportsInternal(HandlerMethod handlerMethod) Methods inherited from class org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter
createDataBinderFactory, createInvocableHandlerMethod, getArgumentResolvers, getBeanFactory, getCustomArgumentResolvers, getCustomReturnValueHandlers, getErrorResponseInterceptors, getInitBinderArgumentResolvers, getLastModifiedInternal, getMessageConverters, getModelAndViewResolvers, getReactiveAdapterRegistry, getReturnValueHandlers, getWebBindingInitializer, handleInternal, invokeHandlerMethod, setArgumentResolvers, setAsyncRequestTimeout, setBeanFactory, setCacheSecondsForSessionAttributeHandlers, setCallableInterceptors, setContentNegotiationManager, setCustomArgumentResolvers, setCustomReturnValueHandlers, setDeferredResultInterceptors, setErrorResponseInterceptors, setIgnoreDefaultModelOnRedirect, setInitBinderArgumentResolvers, setMessageConverters, setModelAndViewResolvers, setParameterNameDiscoverer, setReactiveAdapterRegistry, setRequestBodyAdvice, setResponseBodyAdvice, setReturnValueHandlers, setSessionAttributeStore, setSynchronizeOnSession, setTaskExecutor, setWebBindingInitializerMethods inherited from class org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter
getLastModified, handle, setOrder, supportsMethods inherited from class org.springframework.web.servlet.support.WebContentGenerator
applyCacheControl, applyCacheSeconds, checkAndPrepare, checkRequest, getAllowHeader, getCacheControl, getCacheSeconds, getSupportedMethods, getVaryByRequestHeaders, isRequireSession, prepareResponse, setCacheControl, setCacheSeconds, setRequireSession, setSupportedMethods, setVaryByRequestHeadersMethods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextMethods inherited from class org.springframework.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, initApplicationContext, obtainApplicationContext, requiredContextClass, setApplicationContext
-
Constructor Details
-
RepositoryRestHandlerAdapter
Creates a newRepositoryRestHandlerAdapterusing the givenHandlerMethodArgumentResolvers.- Parameters:
argumentResolvers- must not be null.
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceInitializingBean- Overrides:
afterPropertiesSetin classRequestMappingHandlerAdapter
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceOrdered- Overrides:
getOrderin classAbstractHandlerMethodAdapter
-
supportsInternal
- Overrides:
supportsInternalin classRequestMappingHandlerAdapter
-