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 of
NameValuePair
.- Since:
- 4.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBasicNameValuePair
(String name, String value) Default Constructor taking a name and a value. -
Method Summary
-
Constructor Details
-
BasicNameValuePair
Default Constructor taking a name and a value. The value may be null.- Parameters:
name
- The name.value
- The value.
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceNameValuePair
-
getValue
- Specified by:
getValue
in interfaceNameValuePair
-
toString
-
equals
-
hashCode
public int hashCode() -
clone
- Throws:
CloneNotSupportedException
-