public abstract class AbstractPrefixVersionStrategy extends Object implements VersionStrategy
VersionStrategy implementations that insert
 a prefix into the URL path, e.g. "version/static/myresource.js".| Modifier | Constructor and Description | 
|---|---|
| protected  | AbstractPrefixVersionStrategy(String version) | 
| Modifier and Type | Method and Description | 
|---|---|
| String | addVersion(String path,
          String version)Add a version to the given request path. | 
| String | extractVersion(String requestPath)Extract the resource version from the request path. | 
| String | removeVersion(String requestPath,
             String version)Remove the version from the request path. | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetResourceVersionprotected final Log logger
protected AbstractPrefixVersionStrategy(String version)
public String extractVersion(String requestPath)
VersionStrategyextractVersion in interface VersionStrategyrequestPath - the request path to checknull if none was foundpublic String removeVersion(String requestPath, String version)
VersionStrategyVersionStrategy.extractVersion(String).removeVersion in interface VersionStrategyrequestPath - the request path of the resource being resolvedversion - the version obtained from VersionStrategy.extractVersion(String)public String addVersion(String path, String version)
VersionStrategyaddVersion in interface VersionStrategypath - the requestPathversion - the version