public class HateoasPageableHandlerMethodArgumentResolver extends PageableHandlerMethodArgumentResolver implements org.springframework.hateoas.server.mvc.UriComponentsContributor
PageableHandlerMethodArgumentResolver
that also supports enhancing URIs using Spring HATEOAS
support.Constructor and Description |
---|
HateoasPageableHandlerMethodArgumentResolver()
Constructs an instance of this resolver with a default
HateoasSortHandlerMethodArgumentResolver . |
HateoasPageableHandlerMethodArgumentResolver(HateoasSortHandlerMethodArgumentResolver sortResolver)
Creates a new
HateoasPageableHandlerMethodArgumentResolver using the given
HateoasSortHandlerMethodArgumentResolver .. |
Modifier and Type | Method and Description |
---|---|
void |
enhance(UriComponentsBuilder builder,
MethodParameter parameter,
Object value) |
org.springframework.hateoas.TemplateVariables |
getPaginationTemplateVariables(MethodParameter parameter,
UriComponents template)
Returns the template variable for the pagination parameters.
|
getMaxPageSize, getPageParameterName, getParameterNameToUse, getSizeParameterName, isFallbackPageable, isOneIndexedParameters, resolveArgument, setFallbackPageable, setMaxPageSize, setOneIndexedParameters, setPageParameterName, setPrefix, setQualifierDelimiter, setSizeParameterName, supportsParameter
public HateoasPageableHandlerMethodArgumentResolver()
HateoasSortHandlerMethodArgumentResolver
.public HateoasPageableHandlerMethodArgumentResolver(@Nullable HateoasSortHandlerMethodArgumentResolver sortResolver)
HateoasPageableHandlerMethodArgumentResolver
using the given
HateoasSortHandlerMethodArgumentResolver
..sortResolver
- public org.springframework.hateoas.TemplateVariables getPaginationTemplateVariables(MethodParameter parameter, UriComponents template)
parameter
- can be null.public void enhance(UriComponentsBuilder builder, @Nullable MethodParameter parameter, Object value)
enhance
in interface org.springframework.hateoas.server.mvc.UriComponentsContributor
Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.