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
Nested ClassesModifier and TypeClassDescriptionstatic classStrategies for extracting and embedding a resource version in its URL path. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn whether the resource chain is enabled.booleanisCache()booleanvoidsetCache(boolean cache) voidsetCompressed(boolean compressed) voidsetEnabled(boolean enabled)
-
Constructor Details
-
Chain
public Chain()
-
-
Method Details
-
getEnabled
Return whether the resource chain is enabled. Returnnullif no specific settings are present.- Returns:
- whether the resource chain is enabled or
nullif 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)
-