Package io.helidon.webserver
Class PathTracingConfig.Builder
- java.lang.Object
-
- io.helidon.webserver.PathTracingConfig.Builder
-
- All Implemented Interfaces:
Builder<PathTracingConfig>
,Supplier<PathTracingConfig>
- Enclosing interface:
- PathTracingConfig
public static final class PathTracingConfig.Builder extends Object implements Builder<PathTracingConfig>
Fluent API builder forPathTracingConfig
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PathTracingConfig.Builder
addMethod(String method)
Add a new HTTP method to restrict this configuration for.PathTracingConfig
build()
Build the instance from this builder.PathTracingConfig.Builder
config(Config config)
Update this builder from providedConfig
.PathTracingConfig.Builder
methods(List<String> methods)
HTTP methods to restrict registration of this configuration on web server.PathTracingConfig.Builder
path(String path)
Path to register the traced configuration on.PathTracingConfig.Builder
tracingConfig(TracingConfig tracedConfig)
Configuration of a traced system to use on this path and possibly method(s).
-
-
-
Method Detail
-
build
public PathTracingConfig build()
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<PathTracingConfig>
- Returns:
- instance of the built type
-
config
public PathTracingConfig.Builder config(Config config)
Update this builder from providedConfig
.- Parameters:
config
- config to update this builder from- Returns:
- updated builder instance
-
path
public PathTracingConfig.Builder path(String path)
Path to register the traced configuration on.- Parameters:
path
- path as understood byRouting.Builder
of web server- Returns:
- updated builder instance
-
methods
public PathTracingConfig.Builder methods(List<String> methods)
HTTP methods to restrict registration of this configuration on web server.- Parameters:
methods
- list of methods to use, empty means all methods- Returns:
- updated builder instance
-
addMethod
public PathTracingConfig.Builder addMethod(String method)
Add a new HTTP method to restrict this configuration for.- Parameters:
method
- method to add to the list of supported methods- Returns:
- updated builder instance
-
tracingConfig
public PathTracingConfig.Builder tracingConfig(TracingConfig tracedConfig)
Configuration of a traced system to use on this path and possibly method(s).- Parameters:
tracedConfig
- configuration of components, spans and span logs- Returns:
- updated builder instance
-
-