Class FileSystemHandlerConfig.BuilderBase<BUILDER extends FileSystemHandlerConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends FileSystemHandlerConfig>
java.lang.Object
io.helidon.webserver.staticcontent.BaseHandlerConfig.BuilderBase<BUILDER,PROTOTYPE>
io.helidon.webserver.staticcontent.FileSystemHandlerConfig.BuilderBase<BUILDER,PROTOTYPE>
- Type Parameters:
BUILDER- type of the builder extending this abstract builderPROTOTYPE- type of the prototype interface that would be built byPrototype.Builder.buildPrototype()
- All Implemented Interfaces:
Prototype.Builder<BUILDER,,PROTOTYPE> ConfigBuilderSupport.ConfiguredBuilder<BUILDER,,PROTOTYPE> ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>
- Direct Known Subclasses:
FileSystemHandlerConfig.Builder
- Enclosing interface:
FileSystemHandlerConfig
public abstract static class FileSystemHandlerConfig.BuilderBase<BUILDER extends FileSystemHandlerConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends FileSystemHandlerConfig>
extends BaseHandlerConfig.BuilderBase<BUILDER,PROTOTYPE>
implements ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>
Fluent API builder base for
FileSystemHandlerConfig.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations.Nested classes/interfaces inherited from class io.helidon.webserver.staticcontent.BaseHandlerConfig.BuilderBase
BaseHandlerConfig.BuilderBase.BaseHandlerConfigImpl -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconfig()If this instance was configured, this would be the config instance used.Deprecated.Update builder from configuration (node of this type).from(FileSystemHandlerConfig prototype) Update this builder from an existing prototype instance.from(FileSystemHandlerConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.location()The directory (or a single file) that contains the root of the static content.The directory (or a single file) that contains the root of the static content.protected voidHandles providers and decorators.toString()protected voidValidates required properties.Methods inherited from class io.helidon.webserver.staticcontent.BaseHandlerConfig.BuilderBase
addCachedFile, addCachedFiles, addContentTypes, addSocket, addSockets, cachedFiles, cachedFiles, clearMemoryCache, clearRecordCacheCapacity, clearWelcome, contentTypes, contentTypes, context, context, enabled, enabled, from, from, memoryCache, memoryCache, memoryCache, memoryCache, pathMapper, pathMapper, putContentType, recordCacheCapacity, recordCacheCapacity, sockets, sockets, welcome, welcomeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.builder.api.Prototype.Builder
buildPrototype, self
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
Update this builder from an existing prototype instance. This method disables automatic service discovery.- Parameters:
prototype- existing prototype to update this builder from- Returns:
- updated builder instance
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
config
Deprecated.Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
configin interfaceConfigBuilderSupport.ConfiguredBuilder<BUILDER extends FileSystemHandlerConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends FileSystemHandlerConfig> - Overrides:
configin classBaseHandlerConfig.BuilderBase<BUILDER extends FileSystemHandlerConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends FileSystemHandlerConfig> - Parameters:
config- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
config
Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
configin interfaceConfigBuilderSupport.ConfiguredBuilder<BUILDER extends FileSystemHandlerConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends FileSystemHandlerConfig> - Overrides:
configin classBaseHandlerConfig.BuilderBase<BUILDER extends FileSystemHandlerConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends FileSystemHandlerConfig> - Parameters:
config- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
location
The directory (or a single file) that contains the root of the static content.- Parameters:
location- location to serve the static content, such as"/home/user/static-content".- Returns:
- updated builder instance
- See Also:
-
location
The directory (or a single file) that contains the root of the static content.- Returns:
- the location
-
config
If this instance was configured, this would be the config instance used.- Overrides:
configin classBaseHandlerConfig.BuilderBase<BUILDER extends FileSystemHandlerConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends FileSystemHandlerConfig> - Returns:
- config node used to configure this builder, or empty if not configured
-
toString
- Overrides:
toStringin classBaseHandlerConfig.BuilderBase<BUILDER extends FileSystemHandlerConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends FileSystemHandlerConfig>
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators.- Overrides:
preBuildPrototypein classBaseHandlerConfig.BuilderBase<BUILDER extends FileSystemHandlerConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends FileSystemHandlerConfig>
-
validatePrototype
protected void validatePrototype()Validates required properties.- Overrides:
validatePrototypein classBaseHandlerConfig.BuilderBase<BUILDER extends FileSystemHandlerConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends FileSystemHandlerConfig>
-
config(io.helidon.config.Config)