io.helidon.webserver.staticcontent.BaseHandlerConfig

Description

Configuration of static content handlers that is common for classpath and file system based handlers

Configuration options

KeyTypeDefaultDescription
pre-compressed-enabledBooleanWhether 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
cached-filesList<String>A set of files that are cached in memory at startup
content-typesMap<String, BaseMethods>Maps a filename extension to the response content type
pre-compressed-encodingsMap<String, String>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
memory-cacheMemoryCacheHandles will use memory cache configured on StaticContentConfig#memoryCache() by default
contextString/Context that will serve this handler's static resources, defaults to /
record-cache-capacityIntegerConfigures the capacity of the cache used for resource metadata
socketsList<String>Sockets names (listeners) that will host this static content handler, defaults to all configured sockets
welcomeStringWelcome-file name
enabledBooleantrueWhether this handle is enabled, defaults to true

Dependent Types


See the manifest for all available types.

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