public class HateoasSortHandlerMethodArgumentResolver extends SortHandlerMethodArgumentResolver implements org.springframework.hateoas.server.mvc.UriComponentsContributor
SortHandlerMethodArgumentResolver
that also supports enhancing URIs using Spring HATEOAS
support.Constructor and Description |
---|
HateoasSortHandlerMethodArgumentResolver() |
Modifier and Type | Method and Description |
---|---|
void |
enhance(UriComponentsBuilder builder,
MethodParameter parameter,
Object value) |
org.springframework.hateoas.TemplateVariables |
getSortTemplateVariables(MethodParameter parameter,
UriComponents template)
Returns the template variables for the sort parameter.
|
resolveArgument, supportsParameter
foldIntoExpressions, getDefaultFromAnnotationOrFallback, getPropertyDelimiter, getSortParameter, legacyFoldExpressions, setFallbackSort, setPropertyDelimiter, setQualifierDelimiter, setSortParameter
public HateoasSortHandlerMethodArgumentResolver()
public org.springframework.hateoas.TemplateVariables getSortTemplateVariables(MethodParameter parameter, UriComponents template)
parameter
- must not be null.public void enhance(UriComponentsBuilder builder, @Nullable MethodParameter parameter, @Nullable Object value)
enhance
in interface org.springframework.hateoas.server.mvc.UriComponentsContributor
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.