Interface PagingAndSortingTemplateVariables
- All Superinterfaces:
org.springframework.hateoas.server.mvc.UriComponentsContributor
public interface PagingAndSortingTemplateVariables
extends org.springframework.hateoas.server.mvc.UriComponentsContributor
Interface to abstract the access of
TemplateVariables for pagination and sorting.- Since:
- 2.3
- Author:
- Oliver Gierke
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.hateoas.TemplateVariablesgetPaginationTemplateVariables(MethodParameter parameter, UriComponents components) Returns theTemplateVariablesfor pagination.org.springframework.hateoas.TemplateVariablesgetSortTemplateVariables(MethodParameter parameter, UriComponents components) Returns theTemplateVariablesfor sorting.Methods inherited from interface org.springframework.hateoas.server.mvc.UriComponentsContributor
enhance, supportsParameter
-
Method Details
-
getPaginationTemplateVariables
org.springframework.hateoas.TemplateVariables getPaginationTemplateVariables(MethodParameter parameter, UriComponents components) Returns theTemplateVariablesfor pagination.- Parameters:
parameter- can be null.components- must not be null.- Returns:
-
getSortTemplateVariables
org.springframework.hateoas.TemplateVariables getSortTemplateVariables(MethodParameter parameter, UriComponents components) Returns theTemplateVariablesfor sorting.- Parameters:
parameter- can be null.components- must not be null.- Returns:
-