io.helidon.webserver.staticcontent.ClasspathHandlerConfig
Description
Classpath based static content handler configuration
Configuration options
| Key | Type | Default | Description |
|---|---|---|---|
cached- | List< | A set of files that are cached in memory at startup | |
single- | Boolean | Classpath content usually starts from a Classpath on classpath, and resolves all requested paths against this content root | |
temporary- | Temporary | Customization of temporary storage configuration | |
memory- | Memory | Handles will use memory cache configured on Static by default | |
record- | Integer | Configures the capacity of the cache used for resource metadata | |
enabled | Boolean | true | Whether this handle is enabled, defaults to true |
pre- | Boolean | Whether pre-compressed sidecar resources should be selected for this handler; feature-registered handlers inherit the feature value when absent, directly created handlers default to disabled, and file system handlers configured with a single file always require handler-level opt-in | |
pre- | Boolean | Whether sidecar resources may be sourced from a different classpath origin than the logical resource; when not configured, feature-registered handlers inherit the feature-level value and direct services default to false | |
content- | Map< | Maps a filename extension to the response content type | |
pre- | Map< | Pre-compressed content coding to file suffix mappings; handler mappings replace inherited feature-level mappings rather than merging with them, an explicit empty map disables sidecar lookups for this handler, codings must be unique concrete valid HTTP tokens other than identity and *, and suffixes have leading dots ignored and must not contain path separators | |
context | String | / | Context that will serve this handler's static resources, defaults to / |
location | String | The location on classpath that contains the root of the static content | |
sockets | List< | Sockets names (listeners) that will host this static content handler, defaults to all configured sockets | |
welcome | String | Welcome-file name |
Usages
See the manifest for all available types.