Package com.facilita.fc.web
Class NameValuePair
- java.lang.Object
-
- com.facilita.fc.web.NameValuePair
-
public class NameValuePair extends java.lang.ObjectRepresents a name/value pair ofStringobjects. This class is used to store name/value pairs inQueryDataobjects, which can be used in conjunction withUrlobjects to send data to a web server viaHttpMethod.GETrequests.
-
-
Constructor Summary
Constructors Constructor Description NameValuePair(long cPtr, boolean cMemoryOwn)For internal use only.NameValuePair(java.lang.String name, java.lang.String value)Creates aNameValuePairobject with the specifiednameandvalue.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()static longgetCPtr(NameValuePair obj)For internal use only.java.lang.StringgetName()Gets the name stored in this name/value pair.java.lang.StringgetValue()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 aNameValuePairobject with the specifiednameandvalue.- 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
-
-