Class NameValuePair
- java.lang.Object
-
- com.gargoylesoftware.htmlunit.util.NameValuePair
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
KeyDataPair
public class NameValuePair extends java.lang.Object implements java.io.SerializableA name/value pair.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NameValuePair(java.lang.String name, java.lang.String value)Creates a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object object)java.lang.StringgetName()Returns the name.java.lang.StringgetValue()Returns the value.inthashCode()static org.apache.http.NameValuePair[]toHttpClient(NameValuePair[] pairs)Converts the specified name/value pairs into HttpClient name/value pairs.static java.util.List<org.apache.http.NameValuePair>toHttpClient(java.util.List<NameValuePair> pairs)Converts the specified name/value pairs into HttpClient name/value pairs.java.lang.StringtoString()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the name.- Returns:
- the name
-
getValue
public java.lang.String getValue()
Returns the value.- Returns:
- the value
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toHttpClient
public static org.apache.http.NameValuePair[] toHttpClient(NameValuePair[] pairs)
Converts the specified name/value pairs into HttpClient name/value pairs.- Parameters:
pairs- the name/value pairs to convert- Returns:
- the converted name/value pairs
-
toHttpClient
public static java.util.List<org.apache.http.NameValuePair> toHttpClient(java.util.List<NameValuePair> pairs)
Converts the specified name/value pairs into HttpClient name/value pairs.- Parameters:
pairs- the name/value pairs to convert- Returns:
- the converted name/value pairs
-
-