public interface VersionStrategy
VersionResourceResolver
Modifier and Type | Method and Description |
---|---|
java.lang.String |
addVersion(java.lang.String requestPath,
java.lang.String version)
Add a version to the given request path.
|
java.lang.String |
extractVersion(java.lang.String requestPath)
Extract the resource version from the request path.
|
reactor.core.publisher.Mono<java.lang.String> |
getResourceVersion(Resource resource)
Determine the version for the given resource.
|
java.lang.String |
removeVersion(java.lang.String requestPath,
java.lang.String version)
Remove the version from the request path.
|
@Nullable java.lang.String extractVersion(java.lang.String requestPath)
requestPath
- the request path to checknull
if none was foundjava.lang.String removeVersion(java.lang.String requestPath, java.lang.String version)
extractVersion(String)
.requestPath
- the request path of the resource being resolvedversion
- the version obtained from extractVersion(String)
java.lang.String addVersion(java.lang.String requestPath, java.lang.String version)
requestPath
- the requestPathversion
- the versionreactor.core.publisher.Mono<java.lang.String> getResourceVersion(Resource resource)
resource
- the resource to check