Describe source of parameters for ServerRequest (i.e. query string or
form data)
This commit is contained in:
Arjen Poutsma 2019-11-05 14:30:31 +01:00
parent d6002092c4
commit 6e3deb86f1
1 changed files with 4 additions and 2 deletions

View File

@ -157,7 +157,8 @@ public interface ServerRequest {
Map<String, Object> attributes();
/**
* Get the first parameter with the given name, if present.
* Get the first parameter with the given name, if present. Servlet
* parameters are contained in the query string or posted form data.
* @param name the parameter name
* @return the parameter value
* @see HttpServletRequest#getParameter(String)
@ -177,7 +178,8 @@ public interface ServerRequest {
}
/**
* Get all parameters for this request.
* Get all parameters for this request. Servlet parameters are contained
* in the query string or posted form data.
* @see HttpServletRequest#getParameterMap()
*/
MultiValueMap<String, String> params();