public abstract class AbstractVersionStrategy extends Object implements VersionStrategy
VersionStrategy implementations.
Supports versions as:
Note: This base class does not provide support for generating the version string.
| Constructor and Description |
|---|
AbstractVersionStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
addVersionAsPrefix(String baseUrl,
String version)
Adds the given version string to the baseUrl, as a prefix in the request path.
|
protected String |
addVersionToFilename(String baseUrl,
String version)
Adds the given version string to the baseUrl, as a file name suffix.
|
protected String |
deleteVersionAsPrefix(String requestPath,
String version)
Deletes the given candidate version string from the request path.
|
protected String |
deleteVersionFromFilename(String requestPath,
String candidateVersion)
Deletes the given candidate version string from the request path.
|
protected String |
extractVersionAsPrefix(String requestPath,
String prefix)
Extracts a version string from the request path, as a prefix in the request path.
|
protected String |
extractVersionFromFilename(String requestPath)
Extracts a version string from the request path, as a suffix in the resource
file name.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddVersionToUrl, deleteVersionFromPath, extractVersionFromPath, resourceVersionMatchesprotected final Log logger
protected String extractVersionFromFilename(String requestPath)
requestPath - the request path to extract the version string fromprotected String deleteVersionFromFilename(String requestPath, String candidateVersion)
protected String addVersionToFilename(String baseUrl, String version)
protected String extractVersionAsPrefix(String requestPath, String prefix)
requestPath - the request path to extract the version string fromprotected String deleteVersionAsPrefix(String requestPath, String version)