abstract class AbstractFileNameVersionStrategy : VersionStrategy
Abstract base class for filename suffix based VersionStrategy implementations, e.g. "static/myresource-version.js" |
|
open class AppCacheManifestTransformer : ResourceTransformerSupport
A ResourceTransformer HTML5 AppCache manifests. This transformer:
All files with an ".appcache" file extension (or the extension given to the constructor) will be transformed by this class. The hash is computed using the content of the appcache manifest so that changes in the manifest should invalidate the browser cache. This should also work with changes in referenced resources whose links are also versioned. |
|
open class CachingResourceResolver : AbstractResourceResolver
A ResourceResolver that resolves resources from a Cache or otherwise delegates to the resolver chain and caches the result. |
|
open class CachingResourceTransformer : ResourceTransformer
A ResourceTransformer that checks a Cache to see if a previously transformed resource exists in the cache and returns it if found, or otherwise delegates to the resolver chain and caches the result. |
|
open class ContentVersionStrategy : AbstractFileNameVersionStrategy
A |
|
open class CssLinkResourceTransformer : ResourceTransformerSupport
A ResourceTransformer implementation that modifies links in a CSS file to match the public URL paths that should be exposed to clients (e.g. with an MD5 content-based hash inserted in the URL). The implementation looks for links in CSS |
|
open class FixedVersionStrategy : AbstractPrefixVersionStrategy
A This is useful for example when ContentVersionStrategy cannot be used such as when using JavaScript module loaders which are in charge of loading the JavaScript resources and need to know their relative paths. |
|
open class GzipResourceResolver : AbstractResourceResolver
A The resolver gets involved only if the "Accept-Encoding" request header contains the value "gzip" indicating the client accepts gzipped responses. |
|
interface HttpResource : Resource
Extended interface for a Resource to be written to an HTTP response. |
|
open class PathResourceResolver : AbstractResourceResolver
A simple This resolver does not delegate to the |
|
interface ResourceResolverChain
A contract for invoking a chain of ResourceResolvers where each resolver is given a reference to the chain allowing it to delegate when necessary. |
|
interface ResourceTransformer
An abstraction for transforming the content of a resource. |
|
open class TransformedResource : ByteArrayResource
An extension of ByteArrayResource that a ResourceTransformer can use to represent an original resource preserving all other information except the content. |
|
open class VersionResourceResolver : AbstractResourceResolver
Resolves request paths containing a version string that can be used as part of an HTTP caching strategy in which a resource is cached with a date in the distant future (e.g. 1 year) and cached until the version, and therefore the URL, is changed. Different versioning strategies exist, and this resolver must be configured with one or more such strategies along with path mappings to indicate which strategy applies to which resources.
Note that using this resolver to serve CSS files means that the CssLinkResourceTransformer should also be used in order to modify links within CSS files to also contain the appropriate versions generated by this resolver. |
|
interface VersionStrategy
A strategy to determine the version of a static resource and to apply and/or extract it from the URL path. |
|
open class WebJarsResourceResolver : AbstractResourceResolver
A This allows WebJars.org users to write version agnostic paths in their templates, like This also resolves resources for version agnostic HTTP requests This resolver requires the "org.webjars:webjars-locator" library on classpath, and is automatically registered if that library is present. |