Class NameValuePair


  • public class NameValuePair
    extends java.lang.Object
    Represents a name/value pair of String objects. This class is used to store name/value pairs in QueryData objects, which can be used in conjunction with Url objects to send data to a web server via HttpMethod.GET requests.
    • Constructor Summary

      Constructors 
      Constructor Description
      NameValuePair​(long cPtr, boolean cMemoryOwn)
      For internal use only.
      NameValuePair​(java.lang.String name, java.lang.String value)
      Creates a NameValuePair object with the specified name and value.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete()  
      static long getCPtr​(NameValuePair obj)
      For internal use only.
      java.lang.String getName()
      Gets the name stored in this name/value pair.
      java.lang.String getValue()
      Gets the value stored in this name/value pair.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NameValuePair

        public NameValuePair​(long cPtr,
                             boolean cMemoryOwn)
        For internal use only. Of no interest to the user.
        Parameters:
        cPtr - pointer to the CPP wrapped object
        cMemoryOwn - indicates if this object is responsible for memory management of the CPP object
      • NameValuePair

        public NameValuePair​(java.lang.String name,
                             java.lang.String value)
        Creates a NameValuePair object with the specified name and value.
        Parameters:
        name - a name
        value - a value
    • Method Detail

      • getCPtr

        public static long getCPtr​(NameValuePair obj)
        For internal use only. Of no interest to the user.
        Parameters:
        obj - a reference to an object of this class
        Returns:
        a long containing the address of the CPP wrapped object
      • delete

        public void delete()
      • getName

        public java.lang.String getName()
        Gets the name stored in this name/value pair.
        Returns:
        the name
      • getValue

        public java.lang.String getValue()
        Gets the value stored in this name/value pair.
        Returns:
        the value