CAS Parameters Support

This commit is contained in:
MaxKey
2020-08-08 23:17:26 +08:00
parent 3bf2566fbd
commit ff5d2dfdb0
3 changed files with 40 additions and 6 deletions

View File

@@ -322,6 +322,16 @@ public final class WebContext {
return locale;
}
public static Map<String, String> getRequestParameterMap(HttpServletRequest request) {
Map<String, String> map = new HashMap<String, String>();
Map<String, String[]> parameters = request.getParameterMap();
for (String key : parameters.keySet()) {
String[] values = parameters.get(key);
map.put(key, values != null && values.length > 0 ? values[0] : null);
}
return map;
}
/**
* 根据名字获取cookie.