|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IResourceCachingStrategy
caching strategy for cacheable resources
it can add and remove caching information to the filename and query string parameters of the requested resource to control caches in the browser and on the internet. It also can set http response caching headers.
Field Summary | |
---|---|
static MetaDataKey<String> |
URL_VERSION
A key used to store the extracted resource's version in undecorateUrl(ResourceUrl) into the request cycle |
Method Summary | |
---|---|
void |
decorateResponse(AbstractResource.ResourceResponse response,
IStaticCacheableResource resource)
decorate resource response |
void |
decorateUrl(ResourceUrl url,
IStaticCacheableResource resource)
add caching related information to filename + parameters |
void |
undecorateUrl(ResourceUrl url)
Removes caching related information from filename + parameters. |
Field Detail |
---|
static final MetaDataKey<String> URL_VERSION
Method Detail |
---|
void decorateUrl(ResourceUrl url, IStaticCacheableResource resource)
url
- parameters to which caching information should be added and which will be used to
construct the url to the resourceresource
- cacheable resourcevoid undecorateUrl(ResourceUrl url)
decorateUrl(ResourceUrl, IStaticCacheableResource)
did.
url
- parameters that were used to construct the url to the resource and from which
previously added caching information should be strippedvoid decorateResponse(AbstractResource.ResourceResponse response, IStaticCacheableResource resource)
response
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |