Package com.facilita.fc.web
Class NameValuePair
- java.lang.Object
-
- com.facilita.fc.web.NameValuePair
-
public class NameValuePair extends java.lang.Object
Represents a name/value pair ofString
objects. This class is used to store name/value pairs inQueryData
objects, which can be used in conjunction withUrl
objects to send data to a web server viaHttpMethod.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 aNameValuePair
object with the specifiedname
andvalue
.
-
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.
-
-
-
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 objectcMemoryOwn
- 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 aNameValuePair
object with the specifiedname
andvalue
.- Parameters:
name
- a namevalue
- 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
-
-