Class Headers.Entry

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

@Deprecated(since="2026-01-01") public static class Headers.Entry extends Object
Deprecated.
This API is not supported anymore.
A header entry.
  • Method Details

    • getString

      public String getString()
      Deprecated.
      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()
      Deprecated.
      Return a long value if the type is LONG, otherwise -1
      Returns:
      long
    • getInt

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

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

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

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object