@FunctionalInterface public static interface ResponseCreationSupport.MaxAgeCalculator
Describes a calculator for the max-age property.
Modifier and Type | Method and Description |
---|---|
int |
maxAge(HttpRequest request,
MediaType mediaType)
Calculate a max age value for a response using the given
request and the media type of the repsonse.
|
int maxAge(HttpRequest request, MediaType mediaType)
Calculate a max age value for a response using the given request and the media type of the repsonse.
request
- the request, usually only the URI is
considered for the calculationmediaType
- the media type of the response