Class NameValuePair


  • public class NameValuePair
    extends Object
    A name-value pair.

    Used for specifying repeated query parameters / form properties.

    • Constructor Detail

      • NameValuePair

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

      • 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.