Class ContextPropagationFilter.Builder
- java.lang.Object
-
- io.helidon.webserver.context.propagation.ContextPropagationFilter.Builder
-
- All Implemented Interfaces:
Builder<ContextPropagationFilter>
,Supplier<ContextPropagationFilter>
- Enclosing class:
- ContextPropagationFilter
public static class ContextPropagationFilter.Builder extends Object implements Builder<ContextPropagationFilter>
Fluent API builder forContextPropagationFilter
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContextPropagationFilter.Builder
addRecord(PropagationRecord record)
Add a configuration records.ContextPropagationFilter
build()
Build the instance from this builder.ContextPropagationFilter.Builder
config(Config config)
Update the builder from configuration.
-
-
-
Method Detail
-
build
public ContextPropagationFilter build()
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<ContextPropagationFilter>
- Returns:
- instance of the built type
-
config
public ContextPropagationFilter.Builder config(Config config)
Update the builder from configuration. Uses the keyrecords
an array ofPropagationRecord
.- Parameters:
config
- configuraiton of context propagation- Returns:
- updated builder
-
addRecord
public ContextPropagationFilter.Builder addRecord(PropagationRecord record)
Add a configuration records. A single record maps header to a context classifier.- Parameters:
record
- record to add- Returns:
- updated builder
-
-