@Configuration public class HateoasAwareSpringDataWebConfiguration extends SpringDataWebConfiguration
PagedResourcesAssembler and PagedResourcesAssemblerArgumentResolver.| Constructor and Description |
|---|
HateoasAwareSpringDataWebConfiguration(org.springframework.context.ApplicationContext context,
org.springframework.beans.factory.ObjectFactory<org.springframework.core.convert.ConversionService> conversionService) |
| Modifier and Type | Method and Description |
|---|---|
void |
addArgumentResolvers(List<org.springframework.web.method.support.HandlerMethodArgumentResolver> argumentResolvers) |
HateoasPageableHandlerMethodArgumentResolver |
pageableResolver() |
PagedResourcesAssembler<?> |
pagedResourcesAssembler() |
PagedResourcesAssemblerArgumentResolver |
pagedResourcesAssemblerArgumentResolver() |
HateoasSortHandlerMethodArgumentResolver |
sortResolver() |
addFormatters, customizePageableResolver, customizeSortResolver, extendMessageConverters, setBeanClassLoaderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddCorsMappings, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, getMessageCodesResolver, getValidatorpublic HateoasAwareSpringDataWebConfiguration(org.springframework.context.ApplicationContext context,
@Qualifier(value="mvcConversionService")
org.springframework.beans.factory.ObjectFactory<org.springframework.core.convert.ConversionService> conversionService)
context - must not be null.conversionService - must not be null.@Bean public HateoasPageableHandlerMethodArgumentResolver pageableResolver()
pageableResolver in class SpringDataWebConfiguration@Bean public HateoasSortHandlerMethodArgumentResolver sortResolver()
sortResolver in class SpringDataWebConfiguration@Bean public PagedResourcesAssembler<?> pagedResourcesAssembler()
@Bean public PagedResourcesAssemblerArgumentResolver pagedResourcesAssemblerArgumentResolver()
public void addArgumentResolvers(List<org.springframework.web.method.support.HandlerMethodArgumentResolver> argumentResolvers)
addArgumentResolvers in interface org.springframework.web.servlet.config.annotation.WebMvcConfigureraddArgumentResolvers in class SpringDataWebConfigurationCopyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.