类 ResourceProperties.Chain
- java.lang.Object
- org.springframework.boot.autoconfigure.web.ResourceProperties.Chain
public static class ResourceProperties.Chain extends Object
Configuration for the Spring Resource Handling chain.
构造器概要
构造器 构造器 说明 Chain()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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)
构造器详细资料
Chain
public Chain()
方法详细资料
getEnabled
public Boolean getEnabled()
Return whether the resource chain is enabled. Returnnull
if no specific settings are present.- 返回:
- 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)