| | |
| | |
|
| | | import javax.servlet.ServletRequest;
|
| | |
|
| | | import org.apache.commons.lang3.StringUtils;
|
| | | import org.springframework.util.Assert;
|
| | | import org.springframework.util.ObjectUtils;
|
| | |
|
| | | public class WebUtils extends org.springframework.web.util.WebUtils {
|
| | | public static Map<String, Object> getParametersStartingWith(ServletRequest request, String prefix) {
|
| | |
| | | params.put(unprefixed, values);
|
| | | }
|
| | | else {
|
| | | if (StringUtils.isNotBlank(values[0])) {
|
| | | params.put(unprefixed, values[0]);
|
| | | if (!ObjectUtils.isEmpty(values[0]) && !"null".equalsIgnoreCase(values[0])) {
|
| | | if ("sorter".equals(unprefixed)) {
|
| | | params.put(unprefixed, values[0].replace("end", ""));
|
| | | } else {
|
| | | params.put(unprefixed, values[0]);
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|