Class ContextRecordConfig.Builder
java.lang.Object
io.helidon.common.context.http.ContextRecordConfig.BuilderBase<ContextRecordConfig.Builder, ContextRecordConfig>
io.helidon.common.context.http.ContextRecordConfig.Builder
- All Implemented Interfaces:
Prototype.Builder<ContextRecordConfig.Builder, ContextRecordConfig>, Builder<ContextRecordConfig.Builder, ContextRecordConfig>, ConfigBuilderSupport.ConfiguredBuilder<ContextRecordConfig.Builder, ContextRecordConfig>, Supplier<ContextRecordConfig>
- Enclosing interface:
ContextRecordConfig
public static class ContextRecordConfig.Builder
extends ContextRecordConfig.BuilderBase<ContextRecordConfig.Builder, ContextRecordConfig>
implements Builder<ContextRecordConfig.Builder, ContextRecordConfig>
Fluent API builder for
ContextRecordConfig.-
Nested Class Summary
Nested classes/interfaces inherited from class ContextRecordConfig.BuilderBase
ContextRecordConfig.BuilderBase.ContextRecordConfigImplModifier 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 ContextRecordConfig.BuilderBase
addDefaultValue, addDefaultValues, array, array, classifier, classifier, clearClassifier, clearDefaultValue, clearDefaultValues, config, config, defaultValue, defaultValue, defaultValues, defaultValues, from, from, header, header, preBuildPrototype, toString, validatePrototypeModifier and TypeMethodDescriptionaddDefaultValue(String defaultValue) Default values to send if not configured in context.addDefaultValues(List<String> defaultValues) Default values to send if not configured in context.booleanarray()Whether to treat the option as an array of strings.array(boolean array) Whether to treat the option as an array of strings.String classifier of the value that will be used withContext.get(Object, Class).classifier(String classifier) String classifier of the value that will be used withContext.get(Object, Class).Clear existing value of classifier.Clear existing value of defaultValue.Clear all defaultValues.config()Configuration used to configure this instance.Update builder from configuration (node of this type).Default value to send if not configured in context.defaultValue(String defaultValue) Default value to send if not configured in context.Default values to send if not configured in context.defaultValues(List<String> defaultValues) Default values to send if not configured in context.from(ContextRecordConfig prototype) Update this builder from an existing prototype instance.from(ContextRecordConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.header()Name of the header to use when sending the context value over the network.header(HeaderName header) Name of the header to use when sending the context value over the network.protected voidHandles providers and decorators.toString()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 ContextRecordConfigget()default ContextRecordConfig.Builderidentity()Instance of this builder as the correct type.default ContextRecordConfig.Builderupdate(Consumer<ContextRecordConfig.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault ContextRecordConfig.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<ContextRecordConfig.Builder, ContextRecordConfig>- 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<ContextRecordConfig.Builder, ContextRecordConfig>- Returns:
- instance of the built type
-