Package hudson.util
Class QueryParameterMap
java.lang.Object
hudson.util.QueryParameterMap
Parses the query string of the URL into a key/value pair.
This class is even useful on the server side, as ServletRequest.getParameter(String)
can try to parse into the payload (and that can cause an exception if the payload is already consumed.
See JENKINS-8056.)
So if you are handling the payload yourself and only want to access the query parameters, use this class.
- Since:
- 1.394
- Author:
- Kohsuke Kawaguchi
-
Constructor Summary
ConstructorDescriptionQueryParameterMap
(jakarta.servlet.http.HttpServletRequest req) QueryParameterMap
(String queryString) QueryParameterMap
(javax.servlet.http.HttpServletRequest req) Deprecated. -
Method Summary
-
Constructor Details
-
QueryParameterMap
- Parameters:
queryString
- String that looks likeabc=def&ghi=jkl
-
QueryParameterMap
public QueryParameterMap(jakarta.servlet.http.HttpServletRequest req) -
QueryParameterMap
Deprecated.
-
-
Method Details
-
get
-
getAll
-
QueryParameterMap(HttpServletRequest)