Class TemporaryStorageConfig.Builder
java.lang.Object
io.helidon.webserver.staticcontent.TemporaryStorageConfig.BuilderBase<TemporaryStorageConfig.Builder, TemporaryStorageConfig>
io.helidon.webserver.staticcontent.TemporaryStorageConfig.Builder
- All Implemented Interfaces:
Prototype.Builder<TemporaryStorageConfig.Builder, TemporaryStorageConfig>, Builder<TemporaryStorageConfig.Builder, TemporaryStorage>, ConfigBuilderSupport.ConfiguredBuilder<TemporaryStorageConfig.Builder, TemporaryStorageConfig>, Supplier<TemporaryStorage>
- Enclosing interface:
TemporaryStorageConfig
public static class TemporaryStorageConfig.Builder
extends TemporaryStorageConfig.BuilderBase<TemporaryStorageConfig.Builder, TemporaryStorageConfig>
implements Builder<TemporaryStorageConfig.Builder, TemporaryStorage>
Fluent API builder for
TemporaryStorage.-
Nested Class Summary
Nested classes/interfaces inherited from class TemporaryStorageConfig.BuilderBase
TemporaryStorageConfig.BuilderBase.TemporaryStorageConfigImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class TemporaryStorageConfig.BuilderBase
clearDirectory, config, config, deleteOnExit, deleteOnExit, directory, directory, enabled, enabled, filePrefix, filePrefix, fileSuffix, fileSuffix, from, from, preBuildPrototype, toString, validatePrototypeModifier and TypeMethodDescriptionClear existing value of directory.config()Configuration used to configure this instance.Update builder from configuration (node of this type).booleanWhether temporary files should be deleted on JVM exit.deleteOnExit(boolean deleteOnExit) Whether temporary files should be deleted on JVM exit.Location of the temporary storage, defaults to temporary storage configured for the JVM.Location of the temporary storage, defaults to temporary storage configured for the JVM.booleanenabled()Whether the temporary storage is enabled, defaults totrue.enabled(boolean enabled) Whether the temporary storage is enabled, defaults totrue.Prefix of the files in temporary storage.filePrefix(String filePrefix) Prefix of the files in temporary storage.Suffix of the files in temporary storage.fileSuffix(String fileSuffix) Suffix of the files in temporary storage.from(TemporaryStorageConfig prototype) Update this builder from an existing prototype instance.from(TemporaryStorageConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.protected voidHandles providers and decorators.toString()protected voidValidates required properties.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault TemporaryStorageget()default TemporaryStorageConfig.Builderidentity()Instance of this builder as the correct type.default TemporaryStorageConfig.Builderupdate(Consumer<TemporaryStorageConfig.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault TemporaryStorageConfig.Builderself()Instance of this builder as the correct type.
-
Method Details
-
buildPrototype
Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildPrototypein interfacePrototype.Builder<TemporaryStorageConfig.Builder, TemporaryStorageConfig>- Returns:
- an instance of the setup object created from this builder
-
build
Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildin interfaceBuilder<TemporaryStorageConfig.Builder, TemporaryStorage>- Returns:
- instance of the built type
-