Description
Configuration of static content handlers that is common for classpath and file system based handlers.
Usages
Configuration options
| Key | Kind | Type | Default Value | Description |
|---|---|---|---|---|
cached-files | LIST | String | A set of files that are cached in memory at startup | |
content-types | MAP | i.h.w.s.S.BaseMethods | Maps a filename extension to the response content type | |
context | VALUE | String | / | Context that will serve this handler's static resources, defaults to / |
enabled | VALUE | Boolean | true | Whether this handle is enabled, defaults to true |
memory-cache | VALUE | i.h.w.s.MemoryCache | Handles will use memory cache configured on StaticContentConfig#memoryCache() by default | |
record-cache-capacity | VALUE | Integer | Configure capacity of cache used for resources | |
sockets | LIST | String | Sockets names (listeners) that will host this static content handler, defaults to all configured sockets | |
welcome | VALUE | String | Welcome-file name |
See the manifest for all available types.