Class ResourceProperties.Chain
- java.lang.Object
- org.springframework.boot.autoconfigure.web.ResourceProperties.Chain
- Enclosing class:
- ResourceProperties
public static class ResourceProperties.Chain extends Object
Configuration for the Spring Resource Handling chain.
Constructor Summary
Constructors Constructor Description Chain()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleangetEnabled()Return whether the resource chain is enabled.ResourceProperties.StrategygetStrategy()booleanisCache()booleanisCompressed()booleanisHtmlApplicationCache()voidsetCache(boolean cache)voidsetCompressed(boolean compressed)voidsetEnabled(boolean enabled)voidsetHtmlApplicationCache(boolean htmlApplicationCache)
Constructor Detail
Chain
public Chain()
Method Detail
getEnabled
public Boolean 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
public ResourceProperties.Strategy getStrategy()
isHtmlApplicationCache
public boolean isHtmlApplicationCache()
setHtmlApplicationCache
public void setHtmlApplicationCache(boolean htmlApplicationCache)
isCompressed
public boolean isCompressed()
setCompressed
public void setCompressed(boolean compressed)