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
-
ClassesClassDescriptionA ResourceCache that reads resources from the classpath.Caches resource bytes and missing-resource results from a subclass-defined source.Represents a single entry in the resource cache.Quickly builds responses using a resource cache.Represents a cache source with optional headers.Generates and caches random bytes for download speed tests.A ResourceCache that loads resources from a zip file.