io.helidon.webserver.staticcontent.FileSystemHandlerConfig
Description
File system based static content handler configuration
Configuration options
| Key | Type | Default | Description |
|---|---|---|---|
cached-files | List<String> | A set of files that are cached in memory at startup | |
content-types | Map<String, BaseMethods> | Maps a filename extension to the response content type | |
memory-cache | MemoryCache | Handles will use memory cache configured on StaticContentConfig#memoryCache() by default | |
context | String | / | Context that will serve this handler's static resources, defaults to / |
record-cache-capacity | Integer | Configure capacity of cache used for resources | |
location | Path | The directory (or a single file) that contains the root of the static content | |
sockets | List<String> | Sockets names (listeners) that will host this static content handler, defaults to all configured sockets | |
welcome | String | Welcome-file name | |
enabled | Boolean | true | Whether this handle is enabled, defaults to true |
Usages
See the manifest for all available types.