VersionStrategy that relies on a fixed version applied as a request
path prefix, e.g. reduced SHA, version name, release date, etc.
This is useful for example when ContentVersionStrategy cannot be
used such as when using JavaScript module loaders which are in charge of
loading the JavaScript resources and need to know their relative paths.
VersionResourceResolver
| Access | Constructor and Description |
|---|---|
| public | FixedVersionStrategy(String
the fixed version string to use version)Create a new FixedVersionStrategy with the given version string. |
| Modifier and Type | Method and Description |
|---|---|
| public Mono | getResourceVersion(Resource
the resource to check resource)Implements org. Determine the version for the given resource. |
| versionMono | back to summary |
|---|---|
| private final Mono<String> versionMono | |
| FixedVersionStrategy | back to summary |
|---|---|
| public FixedVersionStrategy(String version) Create a new FixedVersionStrategy with the given version string.
| |
| getResourceVersion | back to summary |
|---|---|
| public Mono Implements org. Doc from org. Determine the version for the given resource. | |