Package org.apache.http.message
Class BasicNameValuePair
- java.lang.Object
-
- org.apache.http.message.BasicNameValuePair
-
- All Implemented Interfaces:
Serializable,Cloneable,NameValuePair
@Contract(threading=IMMUTABLE) public class BasicNameValuePair extends Object implements NameValuePair, Cloneable, Serializable
Basic implementation ofNameValuePair.- Since:
- 4.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BasicNameValuePair(String name, String value)Default Constructor taking a name and a value.
-
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:NameValuePairGets the name of this pair.- Specified by:
getNamein interfaceNameValuePair- Returns:
- the name of this pair, never
null.
-
getValue
public String getValue()
Description copied from interface:NameValuePairGets the value of this pair.- Specified by:
getValuein interfaceNameValuePair- Returns:
- the value of this pair, may be
null.
-
clone
public Object clone() throws CloneNotSupportedException
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
-