Package com.adobe.granite.httpcache.api
Class Headers.Entry
java.lang.Object
com.adobe.granite.httpcache.api.Headers.Entry
- Enclosing class:
Headers
Deprecated.
This API is not supported anymore.
A header entry.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionintgetInt()Deprecated.Return an integer value if the type is INT, otherwise0longgetLong()Deprecated.Return a long value if the type is LONG, otherwise-1getName()Deprecated.Return the header name.Deprecated.Return the string representation of this entry's value.getType()Deprecated.Return the header type.toString()Deprecated.
-
Method Details
-
getString
Deprecated.Return the string representation of this entry's value. If the value's type is notSTRING, 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, otherwise0- Returns:
- integer
-
getType
Deprecated.Return the header type.- Returns:
- type
-
getName
Deprecated.Return the header name.- Returns:
- name
-
toString
Deprecated.
-