Class NameValuePair

java.lang.Object
com.couchbase.client.java.http.NameValuePair

public class NameValuePair extends Object
A name-value pair.

Used for specifying repeated query parameters / form properties.

  • Constructor Details

    • NameValuePair

      public NameValuePair(String name, Object value)
      The name and value MUST NOT already be URL-encoded; they will be encoded automatically.
  • Method Details

    • nv

      public static NameValuePair nv(String name, Object value)
      Static factory method with a concise name suitable for static import. The name and value MUST NOT already be URL-encoded; they will be encoded automatically.
    • toString

      public String toString()
      Overrides:
      toString in class Object