Class HateoasSortHandlerMethodArgumentResolver

All Implemented Interfaces:
SortArgumentResolver, org.springframework.hateoas.server.mvc.UriComponentsContributor, HandlerMethodArgumentResolver

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

    • HateoasSortHandlerMethodArgumentResolver

      public HateoasSortHandlerMethodArgumentResolver()
  • Method Details

    • getSortTemplateVariables

      public org.springframework.hateoas.TemplateVariables getSortTemplateVariables(MethodParameter parameter, UriComponents template)
      Returns the template variables for the sort parameter.
      Parameters:
      parameter - must not be null.
      Returns:
      Since:
      1.7
    • enhance

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