Interface FileSystemHandlerConfig
- All Superinterfaces:
BaseHandlerConfig
,Prototype.Api
- All Known Implementing Classes:
FileSystemHandlerConfig.BuilderBase.FileSystemHandlerConfigImpl
File system based static content handler configuration.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Fluent API builder forFileSystemHandlerConfig
.static class
FileSystemHandlerConfig.BuilderBase<BUILDER extends FileSystemHandlerConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends FileSystemHandlerConfig> Fluent API builder base forFileSystemHandlerConfig
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create a new fluent API builder to customize configuration.builder
(FileSystemHandlerConfig instance) Create a new fluent API builder from an existing instance.static FileSystemHandlerConfig
create()
Create a new instance with default values.static FileSystemHandlerConfig
Deprecated.static FileSystemHandlerConfig
Create a new instance from configuration.static FileSystemHandlerConfig
Create a new file system based static content configuration from the defined location.location()
The directory (or a single file) that contains the root of the static content.Methods inherited from interface io.helidon.webserver.staticcontent.BaseHandlerConfig
cachedFiles, contentTypes, context, enabled, memoryCache, pathMapper, recordCacheCapacity, sockets, welcome
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance
- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance from configuration.- Parameters:
config
- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Deprecated.Create a new instance from configuration.- Parameters:
config
- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Create a new instance with default values.- Returns:
- a new instance
-
create
Create a new file system based static content configuration from the defined location. All other configuration is default.- Parameters:
location
- path on file system that is the root of static content (all files under it will be available!)- Returns:
- a new configuration for classpath static content handler
-
location
Path location()The directory (or a single file) that contains the root of the static content.- Returns:
- location to serve the static content, such as
"/home/user/static-content"
.
-
create(io.helidon.config.Config)