Class SortRequestParameterResolver

    • Constructor Detail

      • SortRequestParameterResolver

        public SortRequestParameterResolver()
    • Method Detail

      • withRequestParamName

        public SortRequestParameterResolver withRequestParamName​(String requestParamName)
        With request parameter name.
        Parameters:
        requestParamName - the request param name
        Returns:
        the sort request parameter resolver
      • withSeparatorValue

        public SortRequestParameterResolver withSeparatorValue​(String separatorValue)
        With separator value.
        Parameters:
        separatorValue - the separator value
        Returns:
        the sort request parameter resolver
      • withDescValue

        public SortRequestParameterResolver withDescValue​(String descValue)
        With desc value.
        Parameters:
        descValue - the desc value
        Returns:
        the sort request parameter resolver
      • getRequestParameters

        protected org.springframework.util.MultiValueMap<String,​Object> getRequestParameters​(org.springframework.data.domain.Sort sort)
        Gets request parameters.
        Parameters:
        sort - the sort
        Returns:
        the request parameters
      • getRequestParamValue

        protected String getRequestParamValue​(org.springframework.data.domain.Sort.Order order)
        Gets request param value.
        Parameters:
        order - the order
        Returns:
        the request param value