Class NameValuePair

java.lang.Object
org.apache.commons.httpclient.NameValuePair
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Cookie, Header, HeaderElement

@Deprecated public class NameValuePair extends Object implements 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:
  • Constructor Details

    • NameValuePair

      public NameValuePair()
      Deprecated.
      Default constructor.
    • NameValuePair

      public NameValuePair(String name, String value)
      Deprecated.
      Constructor.
      Parameters:
      name - The name.
      value - The value.
  • Method Details

    • setName

      public void setName(String name)
      Deprecated.
      Set the name.
      Parameters:
      name - The new name
      See Also:
    • getName

      public String getName()
      Deprecated.
      Return the name.
      Returns:
      String name The name
      See Also:
    • setValue

      public void setValue(String value)
      Deprecated.
      Set the value.
      Parameters:
      value - The new value.
    • getValue

      public String getValue()
      Deprecated.
      Return the current value.
      Returns:
      String value The current value.
    • toString

      public String toString()
      Deprecated.
      Get a String representation of this pair.
      Overrides:
      toString in class Object
      Returns:
      A string representation.
    • equals

      public boolean equals(Object object)
      Deprecated.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object