public abstract class SdkBaseHttpLoggingConfiguration extends Object
| Constructor and Description |
|---|
SdkBaseHttpLoggingConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
excludeHeaders(String... excludeHeaders)
Excludes specified headers from logging.
|
List<String> |
getHeadersToExclude()
Gets the list of headers to exclude from logging.
|
List<String> |
getHeadersToInclude()
Gets the list of headers to include in logging.
|
List<String> |
getHeadersToUnmask()
Retrieves the list of headers to unmask from sensitive headers.
|
protected void |
includeHeaders(String... includeHeaders)
Includes specified headers in logging.
|
protected void |
setLogBody(boolean logBody)
Sets whether to log the request body.
|
protected void |
setLogHeaders(boolean logHeaders)
Sets whether to log the request headers.
|
boolean |
shouldLogBody()
Checks if logging of request body is enabled.
|
boolean |
shouldLogHeaders()
Checks if logging of request headers is enabled.
|
protected void |
unmaskHeaders(String... unmaskHeaders)
Unmask specified headers from logging.
|
public boolean shouldLogBody()
protected void setLogBody(boolean logBody)
logBody - True to enable logging of request body, otherwise false.public boolean shouldLogHeaders()
protected void setLogHeaders(boolean logHeaders)
logHeaders - True to enable logging of request headers, otherwise false.public List<String> getHeadersToInclude()
protected void includeHeaders(String... includeHeaders)
includeHeaders - The headers to include in logging.public List<String> getHeadersToExclude()
protected void excludeHeaders(String... excludeHeaders)
excludeHeaders - The headers to exclude from logging.public List<String> getHeadersToUnmask()
protected void unmaskHeaders(String... unmaskHeaders)
unmaskHeaders - The headers to unmask in logging.Copyright © 2025. All rights reserved.