Class HTTPClient.NVPair
All Packages Class Hierarchy This Package Previous Next Index
Class HTTPClient.NVPair
java.lang.Object
|
+----HTTPClient.NVPair
- public class NVPair
- extends Object
This class holds a Name/Value pair of strings. It's used for form-data
and various internal things.
- Version:
- 0.2 (bug fix 2) 23/03/1997
- Author:
- Ronald Tschalär
-
NVPair(NVPair)
- Creates a copy of a given name/value pair.
-
NVPair(String, String)
- Creates a new name/value pair and initializes it to the
specified name and value.
-
getName()
- get the name
-
getValue()
- get the value
-
toString()
- produces a string containing the name and value of this instance.
NVPair
public NVPair(NVPair p)
- Creates a copy of a given name/value pair.
- Parameters:
- p - the name/value pair to copy
NVPair
public NVPair(String name,
String value)
- Creates a new name/value pair and initializes it to the
specified name and value.
- Parameters:
- name - the name
- value - the value
getName
public final String getName()
- get the name
- Returns:
- the name
getValue
public final String getValue()
- get the value
- Returns:
- the value
toString
public String toString()
- produces a string containing the name and value of this instance.
- Returns:
- a string containing the class name and the name and value
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index