Package io.helidon.common.context.http
Class ContextRecordConfig.BuilderBase.ContextRecordConfigImpl
java.lang.Object
io.helidon.common.context.http.ContextRecordConfig.BuilderBase.ContextRecordConfigImpl
- All Implemented Interfaces:
Prototype.Api,ContextRecordConfig
- Enclosing class:
ContextRecordConfig.BuilderBase<BUILDER extends ContextRecordConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ContextRecordConfig>
protected static class ContextRecordConfig.BuilderBase.ContextRecordConfigImpl
extends Object
implements ContextRecordConfig
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.common.context.http.ContextRecordConfig
ContextRecordConfig.Builder, ContextRecordConfig.BuilderBase<BUILDER extends ContextRecordConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ContextRecordConfig> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedContextRecordConfigImpl(ContextRecordConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionbooleanarray()Whether to treat the option as an array of strings.String classifier of the value that will be used withContext.get(Object, Class).Default value to send if not configured in context.Default values to send if not configured in context.booleaninthashCode()header()Name of the header to use when sending the context value over the network.toString()
-
Constructor Details
-
ContextRecordConfigImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
header
Description copied from interface:ContextRecordConfigName of the header to use when sending the context value over the network.- Specified by:
headerin interfaceContextRecordConfig- Returns:
- header name
-
classifier
Description copied from interface:ContextRecordConfigString classifier of the value that will be used withContext.get(Object, Class).- Specified by:
classifierin interfaceContextRecordConfig- Returns:
- classifier to use, defaults to header name
-
defaultValue
Description copied from interface:ContextRecordConfigDefault value to send if not configured in context.- Specified by:
defaultValuein interfaceContextRecordConfig- Returns:
- default value, used for non-array records, or when only a single value is desired as a default for array
-
defaultValues
Description copied from interface:ContextRecordConfigDefault values to send if not configured in context. In case default values is an empty array, it will not be sent over the network if not present in context.- Specified by:
defaultValuesin interfaceContextRecordConfig- Returns:
- default values, used for array records; if this record is not an array, only the first value will be used
-
array
public boolean array()Description copied from interface:ContextRecordConfigWhether to treat the option as an array of strings. This would be read from the context as an array.- Specified by:
arrayin interfaceContextRecordConfig- Returns:
- whether the record is an array
-
toString
-
equals
-
hashCode
public int hashCode()
-