Class HateoasPageableHandlerMethodArgumentResolver

All Implemented Interfaces:
PageableArgumentResolver, org.springframework.hateoas.server.mvc.UriComponentsContributor, org.springframework.web.method.support.HandlerMethodArgumentResolver

public class HateoasPageableHandlerMethodArgumentResolver extends PageableHandlerMethodArgumentResolver implements org.springframework.hateoas.server.mvc.UriComponentsContributor
Extension of PageableHandlerMethodArgumentResolver that also supports enhancing URIs using Spring HATEOAS support.
Since:
1.6
Author:
Oliver Gierke, Nick Williams
  • Constructor Details

  • Method Details

    • getPaginationTemplateVariables

      public org.springframework.hateoas.TemplateVariables getPaginationTemplateVariables(org.springframework.core.MethodParameter parameter, org.springframework.web.util.UriComponents template)
      Returns the template variable for the pagination parameters.
      Parameters:
      parameter - can be null.
      Returns:
      Since:
      1.7
    • enhance

      public void enhance(org.springframework.web.util.UriComponentsBuilder builder, @Nullable org.springframework.core.MethodParameter parameter, Object value)
      Specified by:
      enhance in interface org.springframework.hateoas.server.mvc.UriComponentsContributor