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.TemplateVariables
getPaginationTemplateVariables
(MethodParameter parameter, UriComponents components) Returns theTemplateVariables
for pagination.org.springframework.hateoas.TemplateVariables
getSortTemplateVariables
(MethodParameter parameter, UriComponents components) Returns theTemplateVariables
for 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 theTemplateVariables
for pagination.- Parameters:
parameter
- can be null.components
- must not be null.- Returns:
-
getSortTemplateVariables
org.springframework.hateoas.TemplateVariables getSortTemplateVariables(MethodParameter parameter, UriComponents components) Returns theTemplateVariables
for sorting.- Parameters:
parameter
- can be null.components
- must not be null.- Returns:
-