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
ConstructorsModifierConstructorDescriptionprotected
ContextRecordConfigImpl
(ContextRecordConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionboolean
array()
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.boolean
int
hashCode()
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:ContextRecordConfig
Name of the header to use when sending the context value over the network.- Specified by:
header
in interfaceContextRecordConfig
- Returns:
- header name
-
classifier
Description copied from interface:ContextRecordConfig
String classifier of the value that will be used withContext.get(Object, Class)
.- Specified by:
classifier
in interfaceContextRecordConfig
- Returns:
- classifier to use, defaults to header name
-
defaultValue
Description copied from interface:ContextRecordConfig
Default value to send if not configured in context.- Specified by:
defaultValue
in 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:ContextRecordConfig
Default 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:
defaultValues
in 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:ContextRecordConfig
Whether to treat the option as an array of strings. This would be read from the context as an array.- Specified by:
array
in interfaceContextRecordConfig
- Returns:
- whether the record is an array
-
toString
-
equals
-
hashCode
public int hashCode()
-