public class HateoasPageableHandlerMethodArgumentResolver extends PageableHandlerMethodArgumentResolver implements org.springframework.hateoas.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(org.springframework.web.util.UriComponentsBuilder builder,
org.springframework.core.MethodParameter parameter,
Object value) |
org.springframework.hateoas.TemplateVariables |
getPaginationTemplateVariables(org.springframework.core.MethodParameter parameter,
org.springframework.web.util.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(HateoasSortHandlerMethodArgumentResolver sortResolver)
HateoasPageableHandlerMethodArgumentResolver
using the given
HateoasSortHandlerMethodArgumentResolver
..sortResolver
- public org.springframework.hateoas.TemplateVariables getPaginationTemplateVariables(org.springframework.core.MethodParameter parameter, org.springframework.web.util.UriComponents template)
parameter
- can be null.public void enhance(org.springframework.web.util.UriComponentsBuilder builder, org.springframework.core.MethodParameter parameter, Object value)
enhance
in interface org.springframework.hateoas.mvc.UriComponentsContributor
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.