Class NVPair
- java.lang.Object
-
- org.exoplatform.common.http.client.NVPair
-
public final class NVPair extends Object
This class holds a Name/Value pair of strings. It's used for headers, form-data, attribute-lists, etc. This class is immutable.- Version:
- 0.3-3 06/05/2001
- Author:
- Ronald Tschal�r
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()Get the name.StringgetValue()Get the value.StringtoString()Produces a string containing the name and value of this instance.
-
-
-
Constructor Detail
-
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 namevalue- the value
-
NVPair
public NVPair(NVPair p)
Creates a copy of a given name/value pair.- Parameters:
p- the name/value pair to copy
-
-