Package com.couchbase.client.java.http
Class NameValuePairs
java.lang.Object
com.couchbase.client.java.http.NameValuePairs
Represents a query string or form data.
Create an instance using one of the static factory methods.
-
Method Summary
Modifier and TypeMethodDescriptionstatic NameValuePairs
of
(NameValuePair... pairs) Returns a new instance that may have repeated names (for example, "number=1&number=2").static NameValuePairs
of
(List<NameValuePair> pairs) Returns a new instance that may have repeated names (for example, "number=1&number=2").static NameValuePairs
Returns a new instance using the entries of the given map in the map's iteration order.static NameValuePairs
ofPreEncoded
(String preEncoded) Returns an instance that uses the given string as-is.toString()
-
Method Details
-
of
Returns a new instance using the entries of the given map in the map's iteration order.- Parameters:
map
- Entries MUST NOT be URL-encoded; they will be URL-encoded automatically
-
of
Returns a new instance that may have repeated names (for example, "number=1&number=2"). -
of
Returns a new instance that may have repeated names (for example, "number=1&number=2"). -
ofPreEncoded
Returns an instance that uses the given string as-is.- Parameters:
preEncoded
- URL-encoded query string (without the "?" prefix).
-
toString
-