Class ResourceConfig.Builder
java.lang.Object
io.helidon.common.configurable.ResourceConfig.BuilderBase<ResourceConfig.Builder, ResourceConfig>
io.helidon.common.configurable.ResourceConfig.Builder
- All Implemented Interfaces:
Prototype.Builder<ResourceConfig.Builder, ResourceConfig>, Builder<ResourceConfig.Builder, Resource>, ConfigBuilderSupport.ConfiguredBuilder<ResourceConfig.Builder, ResourceConfig>, Supplier<Resource>
- Enclosing interface:
ResourceConfig
public static class ResourceConfig.Builder
extends ResourceConfig.BuilderBase<ResourceConfig.Builder, ResourceConfig>
implements Builder<ResourceConfig.Builder, Resource>
Fluent API builder for
Resource.-
Nested Class Summary
Nested classes/interfaces inherited from class ResourceConfig.BuilderBase
ResourceConfig.BuilderBase.ResourceConfigImplModifier 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 ResourceConfig.BuilderBase
clearContent, clearContentPlain, clearPath, clearProxy, clearResourcePath, clearUri, config, config, content, content, contentPlain, contentPlain, description, description, from, from, path, path, preBuildPrototype, proxy, proxy, resourcePath, resourcePath, toString, uri, uri, validatePrototypeModifier and TypeMethodDescriptionClear existing value of content.Clear existing value of contentPlain.Clear existing value of path.Clear existing value of proxy.Clear existing value of resourcePath.clearUri()Clear existing value of uri.config()Configuration used to configure this instance.Update builder from configuration (node of this type).content()Binary content of the resource (base64 encoded).Binary content of the resource (base64 encoded).Plain content of the resource (text).contentPlain(String contentPlain) Plain content of the resource (text).Description of this resource when configured through plain text or binary.description(String description) Description of this resource when configured through plain text or binary.from(ResourceConfig prototype) Update this builder from an existing prototype instance.from(ResourceConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.path()Resource is located on filesystem.Resource is located on filesystem.protected voidHandles providers and decorators.proxy()Proxy to use when using uri.Proxy to use when using uri.Resource is located on classpath.resourcePath(String resourcePath) Resource is located on classpath.toString()uri()Resource is available on aURI.Resource is available on aURI.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 Resourceget()default ResourceConfig.Builderidentity()Instance of this builder as the correct type.default ResourceConfig.Builderupdate(Consumer<ResourceConfig.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault ResourceConfig.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<ResourceConfig.Builder, ResourceConfig>- 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<ResourceConfig.Builder, Resource>- Returns:
- instance of the built type
-