java.lang.Object
io.helidon.http.HttpLogConfig.BuilderBase.HttpLogConfigImpl
- All Implemented Interfaces:
Prototype.Api,HttpLogConfig
- Enclosing class:
HttpLogConfig.BuilderBase<BUILDER extends HttpLogConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends HttpLogConfig>
protected static class HttpLogConfig.BuilderBase.HttpLogConfigImpl
extends Object
implements HttpLogConfig
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.http.HttpLogConfig
HttpLogConfig.Builder, HttpLogConfig.BuilderBase<BUILDER extends HttpLogConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends HttpLogConfig> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHttpLogConfigImpl(HttpLogConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()Base name of the logger to use when logging receive and send packets.booleanLogging of received packets.Header names whose values can be logged at debug level, except sensitive names that are always redacted.booleansendLog()Logging of sent packets.toString()booleanWhether TRACE protocol logs can include raw protocol data.
-
Constructor Details
-
HttpLogConfigImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
receiveLog
public boolean receiveLog()Description copied from interface:HttpLogConfigLogging of received packets. Uses trace and debug levels on configured logger with suffix of.recv`.- Specified by:
receiveLogin interfaceHttpLogConfig- Returns:
trueif logging should be enabled for received packets,falseif no logging should be done- See Also:
-
sendLog
public boolean sendLog()Description copied from interface:HttpLogConfigLogging of sent packets. Uses trace and debug levels on configured logger with suffix of.send`.- Specified by:
sendLogin interfaceHttpLogConfig- Returns:
trueif logging should be enabled for sent packets,falseif no logging should be done- See Also:
-
loggerName
Description copied from interface:HttpLogConfigBase name of the logger to use when logging receive and send packets. Eithersendorrecvis added as another level depending on log direction.- Specified by:
loggerNamein interfaceHttpLogConfig- Returns:
- logger name
-
safeHeaders
Description copied from interface:HttpLogConfigHeader names whose values can be logged at debug level, except sensitive names that are always redacted. All other header values are redacted in protocol logs. Headers such asAuthorization, cookies, and names containingtoken,password,secret, orkeyare never logged even when configured here.- Specified by:
safeHeadersin interfaceHttpLogConfig- Returns:
- safe header names for protocol logging
-
unsafeRawData
public boolean unsafeRawData()Description copied from interface:HttpLogConfigWhether TRACE protocol logs can include raw protocol data.This is an unsafe diagnostic option. When enabled together with TRACE logging, protocol logs can include sensitive request or response data such as header values and entity bytes. This option can only be enabled programmatically through the builder.
- Specified by:
unsafeRawDatain interfaceHttpLogConfig- Returns:
- whether raw protocol data can be logged at TRACE level
-
toString
-
equals
-
hashCode
public int hashCode()
-