Class WebProperties.Resources.Chain
java.lang.Object
org.springframework.boot.autoconfigure.web.WebProperties.Resources.Chain
- Enclosing class:
- WebProperties.Resources
Configuration for the Spring Resource Handling chain.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Strategies for extracting and embedding a resource version in its URL path. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn whether the resource chain is enabled.boolean
isCache()
boolean
void
setCache
(boolean cache) void
setCompressed
(boolean compressed) void
setEnabled
(boolean enabled)
-
Constructor Details
-
Chain
public Chain()
-
-
Method Details
-
getEnabled
Return whether the resource chain is enabled. Returnnull
if no specific settings are present.- Returns:
- whether the resource chain is enabled or
null
if no specified settings are present.
-
setEnabled
public void setEnabled(boolean enabled) -
isCache
public boolean isCache() -
setCache
public void setCache(boolean cache) -
getStrategy
-
isCompressed
public boolean isCompressed() -
setCompressed
public void setCompressed(boolean compressed)
-