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:NameValuePair
Gets the name of this pair.- Specified by:
getName
in interfaceNameValuePair
- Returns:
- the name of this pair, never
null
.
-
getValue
public String getValue()
Description copied from interface:NameValuePair
Gets the value of this pair.- Specified by:
getValue
in interfaceNameValuePair
- Returns:
- the value of this pair, may be
null
.
-
clone
public Object clone() throws CloneNotSupportedException
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-
-