Package org.apache.commons.httpclient
Class NameValuePair
- java.lang.Object
-
- org.apache.commons.httpclient.NameValuePair
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
Cookie
,Header
,HeaderElement
@Deprecated public class NameValuePair extends java.lang.Object implements java.io.Serializable
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NameValuePair()
Deprecated.Default constructor.NameValuePair(java.lang.String name, java.lang.String value)
Deprecated.Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(java.lang.Object object)
Deprecated.java.lang.String
getName()
Deprecated.Return the name.java.lang.String
getValue()
Deprecated.Return the current value.int
hashCode()
Deprecated.void
setName(java.lang.String name)
Deprecated.Set the name.void
setValue(java.lang.String value)
Deprecated.Set the value.java.lang.String
toString()
Deprecated.Get a String representation of this pair.
-
-
-
Method Detail
-
setName
public void setName(java.lang.String name)
Deprecated.Set the name.- Parameters:
name
- The new name- See Also:
getName()
-
getName
public java.lang.String getName()
Deprecated.Return the name.- Returns:
- String name The name
- See Also:
setName(String)
-
setValue
public void setValue(java.lang.String value)
Deprecated.Set the value.- Parameters:
value
- The new value.
-
getValue
public java.lang.String getValue()
Deprecated.Return the current value.- Returns:
- String value The current value.
-
toString
public java.lang.String toString()
Deprecated.Get a String representation of this pair.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation.
-
equals
public boolean equals(java.lang.Object object)
Deprecated.- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCode
in classjava.lang.Object
-
-