Class FileSystemHandlerConfig.BuilderBase.FileSystemHandlerConfigImpl
java.lang.Object
io.helidon.webserver.staticcontent.BaseHandlerConfig.BuilderBase.BaseHandlerConfigImpl
io.helidon.webserver.staticcontent.FileSystemHandlerConfig.BuilderBase.FileSystemHandlerConfigImpl
- All Implemented Interfaces:
Prototype.Api, BaseHandlerConfig, FileSystemHandlerConfig
- Enclosing class:
FileSystemHandlerConfig.BuilderBase<BUILDER extends FileSystemHandlerConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends FileSystemHandlerConfig>
protected static class FileSystemHandlerConfig.BuilderBase.FileSystemHandlerConfigImpl
extends BaseHandlerConfig.BuilderBase.BaseHandlerConfigImpl
implements FileSystemHandlerConfig
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface BaseHandlerConfig
BaseHandlerConfig.Builder, BaseHandlerConfig.BuilderBase<BUILDER, PROTOTYPE>Modifier and TypeInterfaceDescriptionstatic classFluent API builder forBaseHandlerConfig.static classBaseHandlerConfig.BuilderBase<BUILDER extends BaseHandlerConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends BaseHandlerConfig>Fluent API builder base forBaseHandlerConfig.Nested classes/interfaces inherited from interface FileSystemHandlerConfig
FileSystemHandlerConfig.Builder, FileSystemHandlerConfig.BuilderBase<BUILDER, PROTOTYPE>Modifier and TypeInterfaceDescriptionstatic classFluent API builder forFileSystemHandlerConfig.static classFileSystemHandlerConfig.BuilderBase<BUILDER extends FileSystemHandlerConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends FileSystemHandlerConfig>Fluent API builder base forFileSystemHandlerConfig. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreate an instance providing a builder. -
Method Summary
Methods inherited from class BaseHandlerConfig.BuilderBase.BaseHandlerConfigImpl
cachedFiles, contentTypes, context, enabled, memoryCache, pathMapper, preCompressedEnabled, preCompressedEncodings, recordCacheCapacity, sockets, welcomeModifier and TypeMethodDescriptionA set of files that are cached in memory at startup.Maps a filename extension to the response content type.context()Context that will serve this handler's static resources, defaults to/.booleanenabled()Whether this handle is enabled, defaults totrue.Handles will use memory cache configured onStaticContentConfig.memoryCache()by default.Map request path to resource path.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-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 thanidentityand*, and suffixes have leading dots ignored and must not contain path separators.Configures the non-negative resource metadata cache capacity, defaulting to10000records when omitted; zero disables the record cache and negative values fail handler construction.sockets()Sockets names (listeners) that will host this static content handler, defaults to all configured sockets.welcome()Welcome-file name.
-
Constructor Details
-
FileSystemHandlerConfigImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
location
Description copied from interface:FileSystemHandlerConfigThe directory (or a single file) that contains the root of the static content.- Specified by:
locationin interfaceFileSystemHandlerConfig- Returns:
- location to serve the static content, such as
"/home/user/static-content".
-
toString
- Overrides:
toStringin classBaseHandlerConfig.BuilderBase.BaseHandlerConfigImpl
-
equals
- Overrides:
equalsin classBaseHandlerConfig.BuilderBase.BaseHandlerConfigImpl
-
hashCode
public int hashCode()- Overrides:
hashCodein classBaseHandlerConfig.BuilderBase.BaseHandlerConfigImpl
-