Class AbstractVersionStrategy

java.lang.Object
org.springframework.web.servlet.resource.AbstractVersionStrategy
All Implemented Interfaces:
VersionPathStrategy, VersionStrategy
Direct Known Subclasses:
ContentVersionStrategy, FixedVersionStrategy

public abstract class AbstractVersionStrategy extends Object implements VersionStrategy
Abstract base class for VersionStrategy implementations.

Supports versions as:

  • prefix in the request path, like "version/static/myresource.js"
  • file name suffix in the request path, like "static/myresource-version.js"

Note: This base class does not provide support for generating the version string.

Since:
4.1
Author:
Brian Clozel, Rossen Stoyanchev