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

public class NameValuePair extends Object implements Serializable

A simple class encapsulating a name/value pair.

Version:
$Revision: 480424 $ $Date: 2006-11-29 06:56:49 +0100 (Wed, 29 Nov 2006) $
See Also:
  • Constructor Details

    • NameValuePair

      public NameValuePair()
      Default constructor.
    • NameValuePair

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

    • setName

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

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

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

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class Object