Class StaticContentConfig.BuilderBase.StaticContentConfigImpl
java.lang.Object
io.helidon.webserver.staticcontent.StaticContentConfig.BuilderBase.StaticContentConfigImpl
- All Implemented Interfaces:
Prototype.Api,Prototype.Factory<StaticContentFeature>,StaticContentConfig,Supplier<StaticContentFeature>
- Enclosing class:
StaticContentConfig.BuilderBase<BUILDER extends StaticContentConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends StaticContentConfig>
protected static class StaticContentConfig.BuilderBase.StaticContentConfigImpl
extends Object
implements StaticContentConfig, Supplier<StaticContentFeature>
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.webserver.staticcontent.StaticContentConfig
StaticContentConfig.Builder, StaticContentConfig.BuilderBase<BUILDER extends StaticContentConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends StaticContentConfig> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStaticContentConfigImpl(StaticContentConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create a new instance of the runtime type from this config object.List of classpath based static content handlers.Maps a filename extension to the response content type.booleanenabled()Whether this feature is enabled, defaults totrue.booleanget()inthashCode()Memory cache shared by the whole feature.name()Name of this instance.path()List of file system based static content handlers.sockets()Sockets names (listeners) that will host static content handlers, defaults to all configured sockets.Temporary storage to use across all classpath handlers.toString()doubleweight()Weight of the static content feature.welcome()Welcome-file name.
-
Constructor Details
-
StaticContentConfigImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
build
Description copied from interface:Prototype.FactoryCreate a new instance of the runtime type from this config object.- Specified by:
buildin interfacePrototype.Factory<StaticContentFeature>- Returns:
- new configured runtime instance
-
get
- Specified by:
getin interfaceSupplier<StaticContentFeature>
-
enabled
public boolean enabled()Description copied from interface:StaticContentConfigWhether this feature is enabled, defaults totrue.- Specified by:
enabledin interfaceStaticContentConfig- Returns:
- whether this feature is enabled
-
weight
public double weight()Description copied from interface:StaticContentConfigWeight of the static content feature. Defaults to 95.0.- Specified by:
weightin interfaceStaticContentConfig- Returns:
- weight of the feature
-
name
Description copied from interface:StaticContentConfigName of this instance.- Specified by:
namein interfaceStaticContentConfig- Returns:
- instance name
-
memoryCache
Description copied from interface:StaticContentConfigMemory cache shared by the whole feature. If not configured, files are not cached in memory (except for explicitly marked files/resources in each section).- Specified by:
memoryCachein interfaceStaticContentConfig- Returns:
- memory cache, if configured
-
temporaryStorage
Description copied from interface:StaticContentConfigTemporary storage to use across all classpath handlers. If not defined, a default one will be created.- Specified by:
temporaryStoragein interfaceStaticContentConfig- Returns:
- temporary storage
-
classpath
Description copied from interface:StaticContentConfigList of classpath based static content handlers.- Specified by:
classpathin interfaceStaticContentConfig- Returns:
- classpath handlers
-
path
Description copied from interface:StaticContentConfigList of file system based static content handlers.- Specified by:
pathin interfaceStaticContentConfig- Returns:
- path handlers
-
contentTypes
Description copied from interface:StaticContentConfigMaps a filename extension to the response content type. To have a system-wide configuration, you can use the service loader SPIMediaTypeDetector.This method can override
MediaTypesdetection for a specific static content handler.Handler will use a union of configuration defined here, and on the handler here when used from configuration.
- Specified by:
contentTypesin interfaceStaticContentConfig- Returns:
- map of file extensions to associated media type
-
welcome
Description copied from interface:StaticContentConfigWelcome-file name. Default for all handlers. By default, we do not serve default files.- Specified by:
welcomein interfaceStaticContentConfig- Returns:
- welcome-file name, such as
index.html
-
sockets
Description copied from interface:StaticContentConfigSockets names (listeners) that will host static content handlers, defaults to all configured sockets. Default socket name is@default.This configures defaults for all handlers.
- Specified by:
socketsin interfaceStaticContentConfig- Returns:
- sockets to register this handler on
-
toString
-
equals
-
hashCode
public int hashCode()
-