Package io.quarkus.vertx.http.runtime
Class StaticResourcesConfig
- java.lang.Object
-
- io.quarkus.vertx.http.runtime.StaticResourcesConfig
-
public class StaticResourcesConfig extends Object
-
-
Field Summary
Fields Modifier and Type Field Description DurationcacheEntryTimeoutSet the cache entry timeout.booleancachingEnabledSet whether cache handling is enabled.booleanenableRangeSupportSet whether range requests (resumable downloads; media streaming) should be enabled.booleanincludeHiddenSet whether hidden files should be served.StringindexPageSet the index page when serving static resources.DurationmaxAgeSet value for max age in caching headers.intmaxCacheSizeSet the max cache size.
-
Constructor Summary
Constructors Constructor Description StaticResourcesConfig()
-
-
-
Field Detail
-
indexPage
@ConfigItem(defaultValue="index.html") public String indexPage
Set the index page when serving static resources.
-
includeHidden
@ConfigItem(defaultValue="true") public boolean includeHidden
Set whether hidden files should be served.
-
enableRangeSupport
@ConfigItem(defaultValue="true") public boolean enableRangeSupport
Set whether range requests (resumable downloads; media streaming) should be enabled.
-
cachingEnabled
@ConfigItem(defaultValue="true") public boolean cachingEnabled
Set whether cache handling is enabled.
-
cacheEntryTimeout
@ConfigItem(defaultValue="30S") public Duration cacheEntryTimeout
Set the cache entry timeout. The default is30seconds.
-
maxAge
@ConfigItem(defaultValue="24H") public Duration maxAge
Set value for max age in caching headers. The default is24hours.
-
maxCacheSize
@ConfigItem(defaultValue="10000") public int maxCacheSize
Set the max cache size.
-
-