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
ConstructorsModifierConstructorDescriptionprotected
ClasspathHandlerConfigImpl
(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.boolean
int
hashCode()
location()
The location on classpath that contains the root of the static content.boolean
Classpath 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, welcome
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:ClasspathHandlerConfig
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.- Specified by:
location
in interfaceClasspathHandlerConfig
- Returns:
- location on classpath to serve the static content, such as
"/web"
.
-
temporaryStorage
Description copied from interface:ClasspathHandlerConfig
Customization of temporary storage configuration.- Specified by:
temporaryStorage
in interfaceClasspathHandlerConfig
- Returns:
- temporary storage config
-
classLoader
Description copied from interface:ClasspathHandlerConfig
Class loader to use to lookup the static content resources from classpath.- Specified by:
classLoader
in interfaceClasspathHandlerConfig
- Returns:
- class loader to use
-
singleFile
public boolean singleFile()Description copied from interface:ClasspathHandlerConfig
Classpath content usually starts from aClasspathHandlerConfig.location()
on classpath, and resolves all requested paths against this content root. When this property is set totrue
we consider thelocation
to 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:
singleFile
in interfaceClasspathHandlerConfig
- Returns:
- whether to consider
location
as a single file, defaults tofalse
-
toString
- Overrides:
toString
in classBaseHandlerConfig.BuilderBase.BaseHandlerConfigImpl
-
equals
- Overrides:
equals
in classBaseHandlerConfig.BuilderBase.BaseHandlerConfigImpl
-
hashCode
public int hashCode()- Overrides:
hashCode
in classBaseHandlerConfig.BuilderBase.BaseHandlerConfigImpl
-