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 Boolean
getEnabled()
Return whether the resource chain is enabled.ResourceProperties.Strategy
getStrategy()
boolean
isCache()
boolean
isCompressed()
boolean
isHtmlApplicationCache()
void
setCache(boolean cache)
void
setCompressed(boolean compressed)
void
setEnabled(boolean enabled)
void
setHtmlApplicationCache(boolean htmlApplicationCache)
Constructor Detail
Chain
public Chain()
Method Detail
getEnabled
public Boolean 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
public ResourceProperties.Strategy getStrategy()
isHtmlApplicationCache
public boolean isHtmlApplicationCache()
setHtmlApplicationCache
public void setHtmlApplicationCache(boolean htmlApplicationCache)
isCompressed
public boolean isCompressed()
setCompressed
public void setCompressed(boolean compressed)