Description

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

Usages

Configuration options

KeyKindTypeDefault ValueDescription
cached-filesLISTString A set of files that are cached in memory at startup
content-typesMAPi.h.w.s.S.BaseMethods Maps a filename extension to the response content type
contextVALUEString/Context that will serve this handler's static resources, defaults to /
enabledVALUEBooleantrueWhether this handle is enabled, defaults to true
memory-cacheVALUEi.h.w.s.MemoryCache Handles will use memory cache configured on StaticContentConfig#memoryCache() by default
record-cache-capacityVALUEInteger Configure capacity of cache used for resources
socketsLISTString Sockets names (listeners) that will host this static content handler, defaults to all configured sockets
welcomeVALUEString Welcome-file name

See the manifest for all available types.