Class HttpLogConfig.Builder
java.lang.Object
io.helidon.http.HttpLogConfig.BuilderBase<HttpLogConfig.Builder, HttpLogConfig>
io.helidon.http.HttpLogConfig.Builder
- All Implemented Interfaces:
Prototype.Builder<HttpLogConfig.Builder, HttpLogConfig>, Builder<HttpLogConfig.Builder, HttpLogConfig>, ConfigBuilderSupport.ConfiguredBuilder<HttpLogConfig.Builder, HttpLogConfig>, Supplier<HttpLogConfig>
- Enclosing interface:
HttpLogConfig
public static class HttpLogConfig.Builder
extends HttpLogConfig.BuilderBase<HttpLogConfig.Builder, HttpLogConfig>
implements Builder<HttpLogConfig.Builder, HttpLogConfig>
Fluent API builder for
HttpLogConfig.-
Nested Class Summary
Nested classes/interfaces inherited from class HttpLogConfig.BuilderBase
HttpLogConfig.BuilderBase.HttpLogConfigImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class HttpLogConfig.BuilderBase
addSafeHeader, addSafeHeaders, clearLoggerName, clearSafeHeaders, config, config, from, from, loggerName, loggerName, preBuildPrototype, receiveLog, receiveLog, safeHeaders, safeHeaders, sendLog, sendLog, toString, unsafeRawData, unsafeRawData, validatePrototypeModifier and TypeMethodDescriptionaddSafeHeader(HeaderName safeHeader) Header names whose values can be logged at debug level, except sensitive names that are always redacted.addSafeHeaders(Set<? extends HeaderName> safeHeaders) Header names whose values can be logged at debug level, except sensitive names that are always redacted.Clear existing value of loggerName.Clear all safeHeaders.config()Configuration used to configure this instance.Update builder from configuration (node of this type).from(HttpLogConfig prototype) Update this builder from an existing prototype instance.from(HttpLogConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.Base name of the logger to use when logging receive and send packets.loggerName(String loggerName) Base name of the logger to use when logging receive and send packets.protected voidHandles providers and decorators.booleanLogging of received packets.receiveLog(boolean receiveLog) Logging of received packets.Header names whose values can be logged at debug level, except sensitive names that are always redacted.safeHeaders(Set<? extends HeaderName> safeHeaders) Header names whose values can be logged at debug level, except sensitive names that are always redacted.booleansendLog()Logging of sent packets.sendLog(boolean sendLog) Logging of sent packets.toString()booleanWhether TRACE protocol logs can include raw protocol data.unsafeRawData(boolean unsafeRawData) Whether TRACE protocol logs can include raw protocol data.protected voidValidates required properties.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault HttpLogConfigget()default HttpLogConfig.Builderidentity()Instance of this builder as the correct type.default HttpLogConfig.Builderupdate(Consumer<HttpLogConfig.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault HttpLogConfig.Builderself()Instance of this builder as the correct type.
-
Method Details
-
buildPrototype
Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildPrototypein interfacePrototype.Builder<HttpLogConfig.Builder, HttpLogConfig>- Returns:
- an instance of the setup object created from this builder
-
build
Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildin interfaceBuilder<HttpLogConfig.Builder, HttpLogConfig>- Returns:
- instance of the built type
-