Top Description Methods
org.springframework.web.servlet.resource

public Interface VersionStrategy

extends VersionPathStrategy
Known Direct Implementers
org.springframework.web.servlet.resource.AbstractVersionStrategy
Imports
org.springframework.core.io.Resource

An extension of VersionPathStrategy that adds a method to determine the actual version of a Resource.
Authors
Brian Clozel, Rossen Stoyanchev
Since
4.1
See Also
VersionResourceResolver

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the version (never null)
getResourceVersion
(Resource
the resource to check
resource
)

Determine the version for the given resource.

Inherited from org.springframework.web.servlet.resource.VersionPathStrategy:
addVersionextractVersionremoveVersion

Method Detail

getResourceVersionback to summary
public String getResourceVersion(Resource resource)

Determine the version for the given resource.

Parameters
resource:Resource

the resource to check

Returns:String

the version (never null)