Package net.targetr.wtm3.cache


package net.targetr.wtm3.cache
In-memory resource caching and static HTTP response generation.

ResourceCache caches resource bytes, ETags and missing-resource results with entry-count and byte-size limits. Its sources include classpath resources, ZIP archives and generated speed-test data through ClassPathResourceCache, ZipFileResourceCache and SpeedTestResourceCache.

ResponseCache searches an ordered collection of sources, applies source-specific headers and produces static responses for GET and HEAD requests. Content types come from Mime, and representation handling is delegated to HttpByteArrayResponse. Caching of upstream HTTP responses is provided separately by net.targetr.wtm3.net.http.proxy.cache.

Author:
Dr Michael Gardiner