Class Age
- All Implemented Interfaces:
- Serializable,- Cloneable,- Header,- NameValuePair
The age the object has been in a proxy cache in seconds.
Example
Age: 12
RFC2616 Specification
The Age response-header field conveys the sender's estimate of the amount of time since the response (or its revalidation) was generated at the origin server. A cached response is "fresh" if its age does not exceed its freshness lifetime. Age values are calculated as specified in section 13.2.3.Age = "Age" ":" age-value age-value = delta-seconds
Age values are non-negative decimal integers, representing time in seconds.
If a cache receives a value larger than the largest positive integer it can represent, or if any of its age calculations overflows, it MUST transmit an Age header with a value of 2147483648 (2^31).
An HTTP/1.1 server that includes a cache MUST include an Age header field in every response generated from its own cache.
Caches SHOULD use an arithmetic type of at least 31 bits of range.
See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class org.apache.juneau.http.header.BasicIntegerHeaderasInteger, assertInteger, getValue, of, of, of, orElse, toIntegerMethods inherited from class org.apache.juneau.http.header.BasicHeaderassertName, assertStringValue, asString, equals, equalsIgnoreCase, get, getElements, getName, hashCode, isNotEmpty, isPresent, of, of, orElse, toString
- 
Constructor Details- 
AgeConstructor.- Parameters:
- value- The header value.
 Must be parsable using- Integer.parseInt(String).
 Can be- null .
 
- 
AgeConstructor.- Parameters:
- value- The header value.
 Can be- null .
 
- 
AgeConstructor with delayed value.Header value is re-evaluated on each call to BasicIntegerHeader.getValue().- Parameters:
- value- The supplier of the header value.
 Can be- null .
 
 
- 
- 
Method Details- 
ofStatic creator.- Parameters:
- value- The header value.
 Must be parsable using- Integer.parseInt(String).
 Can be- null .
- Returns:
- A new header bean, or null if the value isnull .
 
- 
ofStatic creator.- Parameters:
- value- The header value.
 Can be- null .
- Returns:
- A new header bean, or null if the value isnull .
 
- 
ofStatic creator with delayed value.Header value is re-evaluated on each call to BasicIntegerHeader.getValue().- Parameters:
- value- The supplier of the header value.
 Can be- null .
- Returns:
- A new header bean, or null if the value isnull .
 
 
-