protected static class AbstractVersionStrategy.PrefixVersionPathStrategy extends Object implements VersionPathStrategy
VersionPathStrategy,
 e.g. "{version}/path/foo.js".| Constructor and Description | 
|---|
PrefixVersionPathStrategy(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. 
 | 
public PrefixVersionPathStrategy(String version)
@Nullable public String extractVersion(String requestPath)
VersionPathStrategyextractVersion in interface VersionPathStrategyrequestPath - the request path to checknull if none was foundpublic String removeVersion(String requestPath, String version)
VersionPathStrategyVersionPathStrategy.extractVersion(String).removeVersion in interface VersionPathStrategyrequestPath - the request path of the resource being resolvedversion - the version obtained from VersionPathStrategy.extractVersion(String)public String addVersion(String path, String version)
VersionPathStrategyaddVersion in interface VersionPathStrategypath - the requestPathversion - the version