Class ClasspathHandlerConfig.BuilderBase.ClasspathHandlerConfigImpl
java.lang.Object
io.helidon.webserver.staticcontent.BaseHandlerConfig.BuilderBase.BaseHandlerConfigImpl
io.helidon.webserver.staticcontent.ClasspathHandlerConfig.BuilderBase.ClasspathHandlerConfigImpl
- All Implemented Interfaces:
Prototype.Api,BaseHandlerConfig,ClasspathHandlerConfig
- Enclosing class:
ClasspathHandlerConfig.BuilderBase<BUILDER extends ClasspathHandlerConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ClasspathHandlerConfig>
protected static class ClasspathHandlerConfig.BuilderBase.ClasspathHandlerConfigImpl
extends BaseHandlerConfig.BuilderBase.BaseHandlerConfigImpl
implements ClasspathHandlerConfig
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.BaseHandlerConfig
BaseHandlerConfig.Builder, BaseHandlerConfig.BuilderBase<BUILDER extends BaseHandlerConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends BaseHandlerConfig> Nested classes/interfaces inherited from interface io.helidon.webserver.staticcontent.ClasspathHandlerConfig
ClasspathHandlerConfig.Builder, ClasspathHandlerConfig.BuilderBase<BUILDER extends ClasspathHandlerConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ClasspathHandlerConfig> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedClasspathHandlerConfigImpl(ClasspathHandlerConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionClass loader to use to lookup the static content resources from classpath.booleaninthashCode()location()The location on classpath that contains the root of the static content.booleanClasspath content usually starts from aClasspathHandlerConfig.location()on classpath, and resolves all requested paths against this content root.Customization of temporary storage configuration.toString()Methods inherited from class io.helidon.webserver.staticcontent.BaseHandlerConfig.BuilderBase.BaseHandlerConfigImpl
cachedFiles, contentTypes, context, enabled, memoryCache, pathMapper, recordCacheCapacity, sockets, welcomeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.webserver.staticcontent.BaseHandlerConfig
cachedFiles, contentTypes, context, enabled, memoryCache, pathMapper, recordCacheCapacity, sockets, welcome
-
Constructor Details
-
ClasspathHandlerConfigImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
location
Description copied from interface:ClasspathHandlerConfigThe 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.- Specified by:
locationin interfaceClasspathHandlerConfig- Returns:
- location on classpath to serve the static content, such as
"/web".
-
temporaryStorage
Description copied from interface:ClasspathHandlerConfigCustomization of temporary storage configuration.- Specified by:
temporaryStoragein interfaceClasspathHandlerConfig- Returns:
- temporary storage config
-
classLoader
Description copied from interface:ClasspathHandlerConfigClass loader to use to lookup the static content resources from classpath.- Specified by:
classLoaderin interfaceClasspathHandlerConfig- Returns:
- class loader to use
-
singleFile
public boolean singleFile()Description copied from interface:ClasspathHandlerConfigClasspath content usually starts from aClasspathHandlerConfig.location()on classpath, and resolves all requested paths against this content root. When this property is set totruewe consider thelocationto be a file, that is returned for any requested path under the configuredBaseHandlerConfigBlueprint.context().Note that when this is used, there will never be a redirect returned.
- Specified by:
singleFilein interfaceClasspathHandlerConfig- Returns:
- whether to consider
locationas a single file, defaults tofalse
-
toString
- Overrides:
toStringin classBaseHandlerConfig.BuilderBase.BaseHandlerConfigImpl
-
equals
- Overrides:
equalsin classBaseHandlerConfig.BuilderBase.BaseHandlerConfigImpl
-
hashCode
public int hashCode()- Overrides:
hashCodein classBaseHandlerConfig.BuilderBase.BaseHandlerConfigImpl
-