abstract class AbstractVersionStrategy : VersionStrategy
Abstract base class for VersionStrategy implementations. Supports versions as:
Note: This base class does not provide support for generating the version string. |
|
open class AppCacheManifestTransformer : ResourceTransformerSupport
A ResourceTransformer implementation that helps handling resources within HTML5 AppCache manifests for HTML5 offline applications. This transformer:
All files that have the ".appcache" file extension, or the extension given in the constructor, will be transformed by this class. This hash is computed using the content of the appcache manifest and the content of the linked resources; so changing a resource linked in the manifest or the manifest itself should invalidate the browser cache. In order to serve manifest files with the proper |
|
open class CachingResourceResolver : AbstractResourceResolver
A org.springframework.web.servlet.resource.ResourceResolver that resolves resources from a org.springframework.cache.Cache or otherwise delegates to the resolver chain and saves the result in the cache. |
|
open class CachingResourceTransformer : ResourceTransformer
A org.springframework.web.servlet.resource.ResourceTransformer that checks a org.springframework.cache.Cache to see if a previously transformed resource exists in the cache and returns it if found, and otherwise delegates to the resolver chain and saves the result in the cache. |
|
open class ContentVersionStrategy : AbstractVersionStrategy
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 DefaultServletHttpRequestHandler : HttpRequestHandler, ServletContextAware
An HttpRequestHandler for serving static files using the Servlet container's "default" Servlet. This handler is intended to be used with a "/*" mapping when the org.springframework.web.servlet.DispatcherServlet is mapped to "/", thus overriding the Servlet container's default handling of static resources. The mapping to this handler should generally be ordered as the last in the chain so that it will only execute when no other more specific mappings (i.e., to controllers) can be matched. Requests are handled by forwarding through the RequestDispatcher obtained via the name specified through the |
|
open class FixedVersionStrategy : AbstractVersionStrategy
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 ResourceUrlEncodingFilter : GenericFilterBean
A filter that wraps the HttpServletResponse and overrides its |
|
open class ResourceUrlProviderExposingInterceptor : HandlerInterceptorAdapter
An interceptor that exposes the ResourceUrlProvider instance it is configured with as a request attribute. |
|
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. |
|
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. |