public class RepositoryRestHandlerAdapter
extends org.springframework.hateoas.mvc.ResourceProcessorInvokingHandlerAdapter
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.INIT_BINDER_METHODS, MODEL_ATTRIBUTE_METHODS
Constructor and Description |
---|
RepositoryRestHandlerAdapter(List<org.springframework.web.method.support.HandlerMethodArgumentResolver> argumentResolvers,
org.springframework.hateoas.mvc.ResourceProcessorInvoker invoker)
Creates a new
RepositoryRestHandlerAdapter using the given HandlerMethodArgumentResolver and
ResourceProcessorInvoker . |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
int |
getOrder() |
protected boolean |
supportsInternal(org.springframework.web.method.HandlerMethod handlerMethod) |
createDataBinderFactory, createInvocableHandlerMethod, getArgumentResolvers, getBeanFactory, getCustomArgumentResolvers, getCustomReturnValueHandlers, getInitBinderArgumentResolvers, getLastModifiedInternal, getMessageConverters, getModelAndViewResolvers, getReactiveAdapterRegistry, getReturnValueHandlers, getWebBindingInitializer, handleInternal, invokeHandlerMethod, setArgumentResolvers, setAsyncRequestTimeout, setBeanFactory, setCacheSecondsForSessionAttributeHandlers, setCallableInterceptors, setContentNegotiationManager, setCustomArgumentResolvers, setCustomReturnValueHandlers, setDeferredResultInterceptors, setIgnoreDefaultModelOnRedirect, setInitBinderArgumentResolvers, setMessageConverters, setModelAndViewResolvers, setParameterNameDiscoverer, setReactiveAdapterRegistry, setRequestBodyAdvice, setResponseBodyAdvice, setReturnValueHandlers, setSessionAttributeStore, setSynchronizeOnSession, setTaskExecutor, setWebBindingInitializer
getLastModified, handle, setOrder, supports
applyCacheControl, applyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, checkRequest, getAllowHeader, getCacheControl, getCacheSeconds, getSupportedMethods, getVaryByRequestHeaders, isAlwaysMustRevalidate, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, prepareResponse, preventCaching, setAlwaysMustRevalidate, setCacheControl, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeader, setVaryByRequestHeaders
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
public RepositoryRestHandlerAdapter(List<org.springframework.web.method.support.HandlerMethodArgumentResolver> argumentResolvers, org.springframework.hateoas.mvc.ResourceProcessorInvoker invoker)
RepositoryRestHandlerAdapter
using the given HandlerMethodArgumentResolver
and
ResourceProcessorInvoker
.argumentResolvers
- must not be null.invoker
- must not be null.public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
in class org.springframework.hateoas.mvc.ResourceProcessorInvokingHandlerAdapter
public int getOrder()
getOrder
in interface org.springframework.core.Ordered
getOrder
in class org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter
protected boolean supportsInternal(org.springframework.web.method.HandlerMethod handlerMethod)
supportsInternal
in class org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter
Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.