|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.httpclient.NameValuePair
public class NameValuePair
A simple class encapsulating a name/value pair.
Constructor Summary | |
---|---|
NameValuePair()
Default constructor. |
|
NameValuePair(String name,
String value)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(Object object)
|
String |
getName()
Return the name. |
String |
getValue()
Return the current value. |
int |
hashCode()
|
void |
setName(String name)
Set the name. |
void |
setValue(String value)
Set the value. |
String |
toString()
Get a String representation of this pair. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NameValuePair()
public NameValuePair(String name, String value)
name
- The name.value
- The value.Method Detail |
---|
public void setName(String name)
name
- The new namegetName()
public String getName()
setName(String)
public void setValue(String value)
value
- The new value.public String getValue()
public String toString()
toString
in class Object
public boolean equals(Object object)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |