org.playframework.cachecontrol
Members list
Type members
Classlikes
This trait defines methods that are used through the library where core business logic belongs to the cache that is not in scope for RFC 7234 and cannot be predefined.
This trait defines methods that are used through the library where core business logic belongs to the cache that is not in scope for RFC 7234 and cannot be predefined.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait CacheDefaults
Attributes
- Supertypes
-
class RuntimeExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
A trait that marks the cache directives generated from parsing a cache-control header.
A trait that marks the cache directives generated from parsing a cache-control header.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class CacheDirectiveExtensionclass MaxAgeclass MaxStaleclass MinFreshobject MustRevalidateclass NoCacheobject NoStoreobject NoTransformobject OnlyIfCachedclass Privateobject ProxyRevalidateobject Publicclass SMaxAgeclass StaleIfErrorclass StaleWhileRevalidateShow all
The parser for cache directives specified in the "Cache-Control" HTTP header.
The parser for cache directives specified in the "Cache-Control" HTTP header.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
CacheDirectiveParser.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
CacheDirectives.type
An incoming request which may be served from cache.
An incoming request which may be served from cache.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class OriginResponseclass StoredResponse
Calculates the current age of a response.
Calculates the current age of a response.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
CurrentAgeCalculator.type
Calculates freshness lifetime for a request.
Calculates freshness lifetime for a request.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Ordered[HeaderName]trait Comparable[HeaderName]class Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
HeaderNames.type
Defines methods for parsing and formatting HTTP dates.
Defines methods for parsing and formatting HTTP dates.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
HttpDate.type
A response from an origin server.
A response from an origin server.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait CacheResponseclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class DoCacheResponseclass DoNotCacheResponse
Case classes used by ResponseCachingPolicy.
Case classes used by ResponseCachingPolicy.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Decides whether this response from an origin server should be stored in cached or not.
Decides whether this response from an origin server should be stored in cached or not.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Predefined actions to take for a selected response.
Predefined actions to take for a selected response.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
This class looks through the available responses, and provides an action -- either selecting a response, or rejecting with either a timeout or forward to origin. The cache's containsMatchingHeaders method is called in the case where the response has secondary keys (defined with Vary) that must be matched.
This class looks through the available responses, and provides an action -- either selecting a response, or rejecting with either a timeout or forward to origin. The cache's containsMatchingHeaders method is called in the case where the response has secondary keys (defined with Vary) that must be matched.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class ServeFreshclass ServeStaleclass ServeStaleAndValidateclass Validateclass ValidateOrTimeout
The possible actions a client can execute when determining to serve a stored response.
The possible actions a client can execute when determining to serve a stored response.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ResponseServeActions.type
This class determines whether a cache can serve a stored response from request. It is "Constructing Responses from Caches" section in RFC 7234.
This class determines whether a cache can serve a stored response from request. It is "Constructing Responses from Caches" section in RFC 7234.
If there are multiple matches, the most recent response must be sent for evaluation, as determined by the Date header field.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
This class produces secondary keys for a response from an origin server that contains a Vary header.
This class produces secondary keys for a response from an origin server that contains a Vary header.
The cache must store the response with the requested header from the original request, so that subsequent requests match. This is a little confusing, so an example follows:
A request comes in with:
GET /some/path HTTP/1.1 Host: example.com Accept-Encoding: gzip
The response comes back with a Vary header on the Accept-Encoding:
HTTP/1.1 200 OK Vary: Accept-Encoding Content-Encoding: gzip Content-Type: application/json Content-Length: 230 Cache-Control: max-age=10000000
The cache has to look at the Vary header, see that "Accept-Encoding" is a header on the request, and then store "Accept-Encoding: gzip" as a secondary key on the cache entry.
The implication is that the primary key entry of "GET http://example.com/some/path" is insufficient, and in order to get that specific response from cache, any subsequent requests should have a "Accept-Encoding: gzip" header in the same way.
Attributes
- See also
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
An immutable time period representing a number of seconds.
An immutable time period representing a number of seconds.
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TemporalAmountclass Objecttrait Matchableclass AnyShow all
A response that comes from cache.
A response that comes from cache.
Value parameters
- headers
-
the headers on the stored response.
- nominatedHeaders
-
the request headers that were nominated by the response's Vary header.
- requestMethod
-
the original request method that was used to generate the stored response.
- status
-
the numeric cached response status code.
- uri
-
the effective request URI. This is part of the primary cache lookup key.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait CacheResponseclass Objecttrait Matchableclass AnyShow all
Tells the cache what headers should be stripped before they are cached.
Tells the cache what headers should be stripped before they are cached.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Parses the Vary header in to a list of field names.
Parses the Vary header in to a list of field names.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
VaryParser.type
A parsed warning.
A parsed warning.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
WarningParser.type