public class RepositoryRestHandlerAdapter extends 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
METHOD_GET, METHOD_HEAD, METHOD_POST
logger
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
RepositoryRestHandlerAdapter(List<HandlerMethodArgumentResolver> argumentResolvers,
List<org.springframework.hateoas.ResourceProcessor<?>> resourceProcessors)
Creates a new
RepositoryRestHandlerAdapter using the given HandlerMethodArgumentResolver and
ResourceProcessor s. |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
int |
getOrder() |
protected boolean |
supportsInternal(HandlerMethod handlerMethod) |
createDataBinderFactory, getArgumentResolvers, getBeanFactory, getCustomArgumentResolvers, getCustomReturnValueHandlers, getInitBinderArgumentResolvers, getLastModifiedInternal, getMessageConverters, getModelAndViewResolvers, getReturnValueHandlers, getWebBindingInitializer, handleInternal, setArgumentResolvers, setAsyncRequestTimeout, setBeanFactory, setCacheSecondsForSessionAttributeHandlers, setCallableInterceptors, setContentNegotiationManager, setCustomArgumentResolvers, setCustomReturnValueHandlers, setDeferredResultInterceptors, setIgnoreDefaultModelOnRedirect, setInitBinderArgumentResolvers, setMessageConverters, setModelAndViewResolvers, setParameterNameDiscoverer, setResponseBodyAdvice, setReturnValueHandlers, setSessionAttributeStore, setSynchronizeOnSession, setTaskExecutor, setWebBindingInitializer
getLastModified, handle, setOrder, supports
applyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, getCacheSeconds, getSupportedMethods, isAlwaysMustRevalidate, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, preventCaching, setAlwaysMustRevalidate, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeader
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
getApplicationContext, getMessageSourceAccessor, initApplicationContext, requiredContextClass, setApplicationContext
public RepositoryRestHandlerAdapter(List<HandlerMethodArgumentResolver> argumentResolvers, List<org.springframework.hateoas.ResourceProcessor<?>> resourceProcessors)
RepositoryRestHandlerAdapter
using the given HandlerMethodArgumentResolver
and
ResourceProcessor
s.argumentResolvers
- must not be null.resourceProcessors
- must not be null.public void afterPropertiesSet()
afterPropertiesSet
in interface InitializingBean
afterPropertiesSet
in class ResourceProcessorInvokingHandlerAdapter
public int getOrder()
getOrder
in interface Ordered
getOrder
in class AbstractHandlerMethodAdapter
protected boolean supportsInternal(HandlerMethod handlerMethod)
supportsInternal
in class RequestMappingHandlerAdapter
Copyright © 2011-2015–2016 Pivotal Software, Inc.. All rights reserved.