Description

Classpath based static content handler configuration.

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
locationVALUEString The location on classpath that contains the root of the static content
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
single-fileVALUEBoolean Classpath content usually starts from a ClasspathHandlerConfig#location() on classpath, and resolves all requested paths against this content root
socketsLISTString Sockets names (listeners) that will host this static content handler, defaults to all configured sockets
temporary-storageVALUEi.h.w.s.TemporaryStorage Customization of temporary storage configuration
welcomeVALUEString Welcome-file name

See the manifest for all available types.