public class HateoasSortHandlerMethodArgumentResolver extends SortHandlerMethodArgumentResolver implements org.springframework.hateoas.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 tempalte variables for the sort parameter.
|
foldIntoExpressions, getSortParameter, legacyFoldExpressions, resolveArgument, setFallbackSort, setPropertyDelimiter, setQualifierDelimiter, setSortParameter, supportsParameter
public HateoasSortHandlerMethodArgumentResolver()
public org.springframework.hateoas.TemplateVariables getSortTemplateVariables(MethodParameter parameter, UriComponents template)
parameter
- must not be null.public void enhance(UriComponentsBuilder builder, MethodParameter parameter, Object value)
enhance
in interface org.springframework.hateoas.mvc.UriComponentsContributor
Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.