io.helidon.webserver.staticcontent.StaticContentFeature

Description

Configuration of Static content feature

Configuration options

KeyTypeDefaultDescription
pre-compressed-enabledBooleanfalseWhether pre-compressed sidecar resources should be selected by default for feature-registered directory and classpath handlers; this is disabled by default and does not apply to file system handlers configured with a single file, which require handler-level opt-in
pathList<FileSystemHandlerConfig>List of file system based static content handlers
pre-compressed-cross-origin-sourcing-enabledBooleanfalseWhether classpath sidecar resources may be sourced from a different classpath origin than the logical resource by default for feature-registered handlers
temporary-storageTemporaryStorageTemporary storage to use across all classpath handlers
content-typesMap<String, StaticContentMethods>Maps a filename extension to the response content type
pre-compressed-encodingsMap<String, String>Pre-compressed content coding to file suffix mappings; defaults include br to br and gzip to gz, handler-level mappings replace these mappings rather than merging with them, an explicit empty map disables sidecar lookups by default, codings must be unique concrete valid HTTP tokens other than identity and *, and suffixes have leading dots ignored and must not contain path separators
classpathList<ClasspathHandlerConfig>List of classpath based static content handlers
memory-cacheMemoryCacheMemory cache shared by the whole feature
weightDouble95.0Weight of the static content feature
socketsList<String>Sockets names (listeners) that will host static content handlers, defaults to all configured sockets
welcomeStringWelcome-file name
enabledBooleantrueWhether this feature is enabled, defaults to true

Usages


See the manifest for all available types.

Copyright © 2018, 2026 Oracle and/or its affiliates.