接口 VersionStrategy

    • 方法详细资料

      • extractVersion

        @Nullable
        String extractVersion​(String requestPath)
        Extract the resource version from the request path.
        参数:
        requestPath - the request path to check
        返回:
        the version string or null if none was found
      • addVersion

        String addVersion​(String requestPath,
                          String version)
        Add a version to the given request path.
        参数:
        requestPath - the requestPath
        version - the version
        返回:
        the requestPath updated with a version string
      • getResourceVersion

        reactor.core.publisher.Mono<StringgetResourceVersion​(Resource resource)
        Determine the version for the given resource.
        参数:
        resource - the resource to check
        返回:
        the resource version