public class ResourceProcessorInvokingHandlerAdapter extends RequestMappingHandlerAdapter
RequestMappingHandlerAdapter that tweaks the HandlerMethodReturnValueHandlerComposite to be
proxied by a ResourceProcessorHandlerMethodReturnValueHandler which will invoke the ResourceProcessor
s found in the application context and eventually delegate to the originally configured
HandlerMethodReturnValueHandler.
This is a separate component as it might make sense to deploy it in a standalone SpringMVC application to enable post
processing. It would actually make most sense in Spring HATEOAS project.INIT_BINDER_METHODS, MODEL_ATTRIBUTE_METHODSMETHOD_GET, METHOD_HEAD, METHOD_POSTloggerHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
ResourceProcessorInvokingHandlerAdapter(List<org.springframework.hateoas.ResourceProcessor<?>> resourcesProcessors)
Creates a new
ResourceProcessorInvokingHandlerAdapter with the given ResourceProcessors. |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
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, setReturnValueHandlers, setSessionAttributeStore, setSynchronizeOnSession, setTaskExecutor, setWebBindingInitializer, supportsInternalgetLastModified, getOrder, handle, setOrder, supportsapplyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, getCacheSeconds, getSupportedMethods, isAlwaysMustRevalidate, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, preventCaching, setAlwaysMustRevalidate, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeadergetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextgetApplicationContext, getMessageSourceAccessor, initApplicationContext, requiredContextClass, setApplicationContext@Autowired(required=false) public ResourceProcessorInvokingHandlerAdapter(List<org.springframework.hateoas.ResourceProcessor<?>> resourcesProcessors)
ResourceProcessorInvokingHandlerAdapter with the given ResourceProcessors.resourcesProcessors - must not be null.public void afterPropertiesSet()
afterPropertiesSet in interface InitializingBeanafterPropertiesSet in class RequestMappingHandlerAdapterCopyright © 2011-2014-2014 Pivotal Software, Inc.. All Rights Reserved.