Class Headers.Entry

  • Enclosing class:
    Headers

    public static class Headers.Entry
    extends Object
    A header entry.
    • Method Detail

      • getString

        public String getString()
        Return the string representation of this entry's value. If the value's type is not STRING, it is converted to a string as follows:
        • a long is formatted as a date in RFC1123 format
        • an integer is formatted as decimal number
        Returns:
        string representation
      • getLong

        public long getLong()
        Return a long value if the type is LONG, otherwise -1
        Returns:
        long
      • getInt

        public int getInt()
        Return an integer value if the type is INT, otherwise 0
        Returns:
        integer
      • getName

        public String getName()
        Return the header name.
        Returns:
        name