public class HateoasPageableHandlerMethodArgumentResolver extends PageableHandlerMethodArgumentResolver implements org.springframework.hateoas.mvc.UriComponentsContributor
PageableHandlerMethodArgumentResolver
that also supports enhancing URIs using Spring HATEOAS
support.Modifier and Type | Field and Description |
---|---|
static HateoasPageableHandlerMethodArgumentResolver |
LEGACY
Deprecated.
|
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, isOneIndexedParameters, resolveArgument, setFallbackPageable, setMaxPageSize, setOneIndexedParameters, setPageParameterName, setPrefix, setQualifierDelimiter, setSizeParameterName, supportsParameter
@Deprecated public static final HateoasPageableHandlerMethodArgumentResolver LEGACY
HateoasPageableHandlerMethodArgumentResolver
preconfigured to the setup of
PageableArgumentResolver
. Use that if you need to stick to the former request parameters an 1-indexed
behavior. This will be removed in the next major version (1.7). So consider migrating to the new way of exposing
request parameters.public HateoasPageableHandlerMethodArgumentResolver()
HateoasSortHandlerMethodArgumentResolver
.public HateoasPageableHandlerMethodArgumentResolver(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, MethodParameter parameter, Object value)
enhance
in interface org.springframework.hateoas.mvc.UriComponentsContributor
Copyright © 2011-2014-2014 Pivotal. All Rights Reserved.