Package com.adobe.granite.httpcache.api
Class Headers.Entry
- java.lang.Object
 - 
- com.adobe.granite.httpcache.api.Headers.Entry
 
 
- 
- Enclosing class:
 - Headers
 
public static class Headers.Entry extends java.lang.ObjectA header entry. 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHeaders.Entry.Type 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetInt()Return an integer value if the type is INT, otherwise0longgetLong()Return a long value if the type is LONG, otherwise-1java.lang.StringgetName()Return the header name.java.lang.StringgetString()Return the string representation of this entry's value.Headers.Entry.TypegetType()Return the header type.java.lang.StringtoString() 
 - 
 
- 
- 
Method Detail
- 
getString
public java.lang.String 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
public Headers.Entry.Type getType()
Return the header type.- Returns:
 - type
 
 
- 
getName
public java.lang.String getName()
Return the header name.- Returns:
 - name
 
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
 - 
 
 -