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