|
eXo WS :: Commons Utils 2.4.0-Alpha1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.common.http.client.NVPair
public final class NVPair
This class holds a Name/Value pair of strings. It's used for headers, form-data, attribute-lists, etc. This class is immutable.
| Constructor Summary | |
|---|---|
NVPair(NVPair p)
Creates a copy of a given name/value pair. |
|
NVPair(String name,
String value)
Creates a new name/value pair and initializes it to the specified name and value. |
|
| Method Summary | |
|---|---|
String |
getName()
Get the name. |
String |
getValue()
Get the value. |
String |
toString()
Produces a string containing the name and value of this instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NVPair(String name,
String value)
name - the namevalue - the valuepublic NVPair(NVPair p)
p - the name/value pair to copy| Method Detail |
|---|
public final String getName()
public final String getValue()
public String toString()
toString in class Object
|
eXo WS :: Commons Utils 2.4.0-Alpha1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||