Class Headers.Entry

java.lang.Object
com.adobe.granite.httpcache.api.Headers.Entry
Enclosing class:
Headers

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

    • 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
    • getType

      public Headers.Entry.Type getType()
      Return the header type.
      Returns:
      type
    • getName

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

      public String toString()
      Overrides:
      toString in class Object