Package org.apache.commons.httpclient
Class NameValuePair
java.lang.Object
org.apache.commons.httpclient.NameValuePair
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Cookie,Header,HeaderElement
Deprecated.
Jakarta Commons HttpClient 3.x is deprecated in the Jenkins project.
It is not recommended to use it in any new code.
Instead, use HTTP client API plugins as a dependency in your code.
E.g.
Apache HttpComponents Client API 4.x Plugin or
Async HTTP Client Plugin.
A simple class encapsulating a name/value pair.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Default constructor.NameValuePair(String name, String value) Deprecated.Constructor. -
Method Summary
-
Constructor Details
-
NameValuePair
public NameValuePair()Deprecated.Default constructor. -
NameValuePair
Deprecated.Constructor.- Parameters:
name- The name.value- The value.
-
-
Method Details
-
setName
Deprecated.Set the name.- Parameters:
name- The new name- See Also:
-
getName
Deprecated.Return the name.- Returns:
- String name The name
- See Also:
-
setValue
Deprecated.Set the value.- Parameters:
value- The new value.
-
getValue
Deprecated.Return the current value.- Returns:
- String value The current value.
-
toString
Deprecated.Get a String representation of this pair. -
equals
Deprecated. -
hashCode
public int hashCode()Deprecated.
-