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 SummaryModifier and TypeMethodDescriptionstatic NameValuePairsof(NameValuePair... pairs) Returns a new instance that may have repeated names (for example, "number=1&number=2").static NameValuePairsof(List<NameValuePair> pairs) Returns a new instance that may have repeated names (for example, "number=1&number=2").static NameValuePairsReturns a new instance using the entries of the given map in the map's iteration order.static NameValuePairsofPreEncoded(String preEncoded) Returns an instance that uses the given string as-is.toString()
- 
Method Details- 
ofReturns 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
 
- 
ofReturns a new instance that may have repeated names (for example, "number=1&number=2").
- 
ofReturns a new instance that may have repeated names (for example, "number=1&number=2").
- 
ofPreEncodedReturns an instance that uses the given string as-is.- Parameters:
- preEncoded- URL-encoded query string (without the "?" prefix).
 
- 
toString
 
-