Package | Description |
---|---|
org.springframework.web.reactive.resource |
Support classes for serving static resources.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractFileNameVersionStrategy
Abstract base class for filename suffix based
VersionStrategy
implementations, e.g. |
class |
AbstractPrefixVersionStrategy
Abstract base class for
VersionStrategy implementations that insert
a prefix into the URL path, e.g. |
class |
ContentVersionStrategy
A
VersionStrategy that calculates an Hex MD5 hashes from the content
of the resource and appends it to the file name, e.g. |
class |
FixedVersionStrategy
A
VersionStrategy that relies on a fixed version applied as a request
path prefix, e.g. |
Modifier and Type | Method and Description |
---|---|
protected VersionStrategy |
VersionResourceResolver.getStrategyForPath(java.lang.String requestPath)
Find a
VersionStrategy for the request path of the requested resource. |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,VersionStrategy> |
VersionResourceResolver.getStrategyMap()
Return the map with version strategies keyed by path pattern.
|
Modifier and Type | Method and Description |
---|---|
VersionResourceResolver |
VersionResourceResolver.addVersionStrategy(VersionStrategy strategy,
java.lang.String... pathPatterns)
Register a custom VersionStrategy to apply to resource URLs that match the
given path patterns.
|
Modifier and Type | Method and Description |
---|---|
void |
VersionResourceResolver.setStrategyMap(java.util.Map<java.lang.String,VersionStrategy> map)
Set a Map with URL paths as keys and
VersionStrategy as values. |