Class ClasspathHandlerConfig.BuilderBase<BUILDER extends ClasspathHandlerConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends ClasspathHandlerConfig>
java.lang.Object
io.helidon.webserver.staticcontent.BaseHandlerConfig.BuilderBase<BUILDER,PROTOTYPE>
io.helidon.webserver.staticcontent.ClasspathHandlerConfig.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>
- Direct Known Subclasses:
ClasspathHandlerConfig.Builder
- Enclosing interface:
ClasspathHandlerConfig
public abstract static class ClasspathHandlerConfig.BuilderBase<BUILDER extends ClasspathHandlerConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends ClasspathHandlerConfig>
extends BaseHandlerConfig.BuilderBase<BUILDER,PROTOTYPE>
implements ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>
Fluent API builder base for
ClasspathHandlerConfig
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
Generated 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 TypeMethodDescriptionClass loader to use to lookup the static content resources from classpath.classLoader
(ClassLoader classLoader) Class loader to use to lookup the static content resources from classpath.Clear existing value of this property.Clear existing value of this property.config()
If this instance was configured, this would be the config instance used.Update builder from configuration (node of this type).from
(ClasspathHandlerConfig prototype) Update this builder from an existing prototype instance.from
(ClasspathHandlerConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.location()
The location on classpath that contains the root of the static content.The location on classpath that contains the root of the static content.protected void
Handles providers and decorators.Customization of temporary storage configuration.temporaryStorage
(TemporaryStorage temporaryStorage) Customization of temporary storage configuration.temporaryStorage
(TemporaryStorageConfig temporaryStorageConfig) Customization of temporary storage configuration.Customization of temporary storage configuration.toString()
protected void
Validates 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, welcome
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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
Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
config
in interfaceConfigBuilderSupport.ConfiguredBuilder<BUILDER extends ClasspathHandlerConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends ClasspathHandlerConfig> - Overrides:
config
in classBaseHandlerConfig.BuilderBase<BUILDER extends ClasspathHandlerConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends ClasspathHandlerConfig> - Parameters:
config
- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
location
The location on classpath that contains the root of the static content. This should never be the root (i.e./
), as that would allow serving of all class files.- Parameters:
location
- location on classpath to serve the static content, such as"/web"
.- Returns:
- updated builder instance
- See Also:
-
clearTemporaryStorage
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
temporaryStorage
Customization of temporary storage configuration.- Parameters:
temporaryStorage
- temporary storage config- Returns:
- updated builder instance
- See Also:
-
temporaryStorage
Customization of temporary storage configuration.- Parameters:
temporaryStorageConfig
- temporary storage config- Returns:
- updated builder instance
- See Also:
-
temporaryStorage
Customization of temporary storage configuration.- Parameters:
consumer
- temporary storage config- Returns:
- updated builder instance
- See Also:
-
clearClassLoader
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
classLoader
Class loader to use to lookup the static content resources from classpath.- Parameters:
classLoader
- class loader to use- Returns:
- updated builder instance
- See Also:
-
location
The location on classpath that contains the root of the static content. This should never be the root (i.e./
), as that would allow serving of all class files.- Returns:
- the location
-
temporaryStorage
Customization of temporary storage configuration.- Returns:
- the temporary storage
-
classLoader
Class loader to use to lookup the static content resources from classpath.- Returns:
- the class loader
-
config
If this instance was configured, this would be the config instance used.- Overrides:
config
in classBaseHandlerConfig.BuilderBase<BUILDER extends ClasspathHandlerConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends ClasspathHandlerConfig> - Returns:
- config node used to configure this builder, or empty if not configured
-
toString
- Overrides:
toString
in classBaseHandlerConfig.BuilderBase<BUILDER extends ClasspathHandlerConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends ClasspathHandlerConfig>
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators.- Overrides:
preBuildPrototype
in classBaseHandlerConfig.BuilderBase<BUILDER extends ClasspathHandlerConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends ClasspathHandlerConfig>
-
validatePrototype
protected void validatePrototype()Validates required properties.- Overrides:
validatePrototype
in classBaseHandlerConfig.BuilderBase<BUILDER extends ClasspathHandlerConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends ClasspathHandlerConfig>
-