Class AutoHttpMetricsPathConfig.BuilderBase<BUILDER extends AutoHttpMetricsPathConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends AutoHttpMetricsPathConfig>
java.lang.Object
io.helidon.webserver.observe.metrics.AutoHttpMetricsPathConfig.BuilderBase<BUILDER,PROTOTYPE>
- Type Parameters:
BUILDER- type of the builder extending this abstract builderPROTOTYPE- type of the prototype interface that would be built byPrototype.Builder.buildPrototype()
- All Implemented Interfaces:
Prototype.Builder<BUILDER,,PROTOTYPE> ConfigBuilderSupport.ConfiguredBuilder<BUILDER,,PROTOTYPE> ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>
- Direct Known Subclasses:
AutoHttpMetricsPathConfig.Builder
- Enclosing interface:
AutoHttpMetricsPathConfig
public abstract static class AutoHttpMetricsPathConfig.BuilderBase<BUILDER extends AutoHttpMetricsPathConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends AutoHttpMetricsPathConfig>
extends Object
implements ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>
Fluent API builder base for
AutoHttpMetricsPathConfig.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionHTTP methods for which this path config applies; default is to match all HTTP methods.addMethods(List<String> methods) HTTP methods for which this path config applies; default is to match all HTTP methods.Clear all methods.config()Configuration used to configure this instance.Deprecated.Update builder from configuration (node of this type).booleanenabled()Whether automatic metrics are to be enabled for requests which match the specifiedPathMatcherand HTTP methods.enabled(boolean enabled) Whether automatic metrics are to be enabled for requests which match the specifiedPathMatcherand HTTP methods.from(AutoHttpMetricsPathConfig prototype) Update this builder from an existing prototype instance.from(AutoHttpMetricsPathConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.methods()HTTP methods for which this path config applies; default is to match all HTTP methods.HTTP methods for which this path config applies; default is to match all HTTP methods.path()Path matching expression for this path config entry.Path matching expression for this path config entry.protected voidHandles providers and decorators.toString()protected voidValidates required properties.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.builder.api.Prototype.Builder
buildPrototype, self
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
Update this builder from an existing prototype instance. This method disables automatic service discovery.- Parameters:
prototype- existing prototype to update this builder from- Returns:
- updated builder instance
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
config
Deprecated.Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
configin interfaceConfigBuilderSupport.ConfiguredBuilder<BUILDER extends AutoHttpMetricsPathConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends AutoHttpMetricsPathConfig> - Parameters:
config- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
config
Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
configin interfaceConfigBuilderSupport.ConfiguredBuilder<BUILDER extends AutoHttpMetricsPathConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends AutoHttpMetricsPathConfig> - Parameters:
config- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
enabled
Whether automatic metrics are to be enabled for requests which match the specifiedPathMatcherand HTTP methods.- Parameters:
enabled- whether auto metrics are to be enabled for this path config's path matcher and HTTP methods- Returns:
- updated builder instance
- See Also:
-
path
Path matching expression for this path config entry.- Parameters:
path- path matching expression- Returns:
- updated builder instance
- See Also:
-
clearMethods
Clear all methods.- Returns:
- updated builder instance
- See Also:
-
methods
HTTP methods for which this path config applies; default is to match all HTTP methods.- Parameters:
methods- HTTP methods- Returns:
- updated builder instance
- See Also:
-
addMethods
HTTP methods for which this path config applies; default is to match all HTTP methods.- Parameters:
methods- HTTP methods- Returns:
- updated builder instance
- See Also:
-
addMethod
HTTP methods for which this path config applies; default is to match all HTTP methods.- Parameters:
method- add single HTTP methods- Returns:
- updated builder instance
- See Also:
-
enabled
public boolean enabled()Whether automatic metrics are to be enabled for requests which match the specifiedPathMatcherand HTTP methods.- Returns:
- whether auto metrics are to be enabled for this path config's path matcher and HTTP methods
-
path
Path matching expression for this path config entry.- Returns:
- path matching expression
-
methods
HTTP methods for which this path config applies; default is to match all HTTP methods.- Returns:
- HTTP methods
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties. -
config
Configuration used to configure this instance.- Returns:
- config instance
-
config(io.helidon.config.Config)