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:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBasicNameValuePair(String name, String value) Default Constructor taking a name and a value. -
Method Summary
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
name
-
value
-
-
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
Description copied from interface:NameValuePairGets the name of this pair.- Specified by:
getNamein interfaceNameValuePair- Returns:
- the name of this pair, never
null.
-
getValue
Description copied from interface:NameValuePairGets the value of this pair.- Specified by:
getValuein interfaceNameValuePair- Returns:
- the value of this pair, may be
null.
-
toString
-
equals
-
hashCode
public int hashCode() -
clone
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-