public class NameValuePair extends Object implements Serializable
Constructor and Description |
---|
NameValuePair(String name,
String value)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
String |
getName()
Returns the name.
|
String |
getValue()
Returns the value.
|
int |
hashCode() |
static org.apache.http.NameValuePair[] |
toHttpClient(List<NameValuePair> pairs)
Converts the specified name/value pairs into HttpClient name/value pairs.
|
static org.apache.http.NameValuePair[] |
toHttpClient(NameValuePair[] pairs)
Converts the specified name/value pairs into HttpClient name/value pairs.
|
String |
toString() |
public String getName()
public String getValue()
public static org.apache.http.NameValuePair[] toHttpClient(NameValuePair[] pairs)
pairs
- the name/value pairs to convertpublic static org.apache.http.NameValuePair[] toHttpClient(List<NameValuePair> pairs)
pairs
- the name/value pairs to convertCopyright © 2002–2017 Gargoyle Software Inc.. All rights reserved.