Class NameValue


  • public class NameValue
    extends java.lang.Object
    A name / value pair parameter used as an element of HTTP messages.
     parameter = attribute "=" value
     attribute = token
     value     = token | quoted-string
     
    • Constructor Summary

      Constructors 
      Constructor Description
      NameValue​(java.lang.String name, java.lang.String value)
      Default Constructor taking a name and a value.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.lang.String getName()
      Gets the name.
      java.lang.String getValue()
      Gets the value.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • NameValue

        public NameValue​(java.lang.String name,
                         java.lang.String value)
        Default Constructor taking a name and a value. The value may be null.
        Parameters:
        name - The name.
        value - The value.
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • getName

        public java.lang.String getName()
        Gets the name.
        Returns:
        the name
      • getValue

        public java.lang.String getValue()
        Gets the value.
        Returns:
        the value
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object