VersionStrategy implementations that insert
a prefix into the URL path, e.g. "version/static/myresource.js".
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public String | addVersion(String
the requestPath path, String the version version)Implements org. Add a version to the given request path. |
| public String | extractVersion(String
the request path to check requestPath)Implements org. Extract the resource version from the request path. |
| public String | removeVersion(String
the request path of the resource being resolved requestPath, String the version obtained from version)extractVersion(String)Implements org. Remove the version from the request path. |
| logger | back to summary |
|---|---|
| protected final Log logger | |
| prefix | back to summary |
|---|---|
| private final String prefix | |
| AbstractPrefixVersionStrategy | back to summary |
|---|---|
| protected AbstractPrefixVersionStrategy(String version) | |
| addVersion | back to summary |
|---|---|
| public String addVersion(String path, String version) Implements org. Doc from org. Add a version to the given request path. | |
| extractVersion | back to summary |
|---|---|
| public String extractVersion(String requestPath) Implements org. Doc from org. Extract the resource version from the request path. | |
| removeVersion | back to summary |
|---|---|
| public String removeVersion(String requestPath, String version) Implements org. Doc from org. Remove the version from the request path. It is assumed that the given
version was extracted via
| |