public final class LoggerUtilities extends Object
| Modifier and Type | Method and Description |
|---|---|
static Map<String,String> |
extractExcludedHeaders(Map<String,String> headers,
List<String> headersToExclude)
Extracts headers to log based on exclusion criteria.
|
static Map<String,String> |
extractHeadersToLog(Map<String,String> headers,
List<String> headersToInclude,
List<String> headersToExclude)
Extracts headers to log based on inclusion and exclusion criteria.
|
static Map<String,String> |
extractIncludedHeaders(Map<String,String> headers,
List<String> headersToInclude)
Extracts headers to log based on inclusion criteria.
|
static Map<String,String> |
filterSensitiveHeaders(Map<String,String> headers,
List<String> headersToUnmask,
boolean maskSensitiveHeaders)
Filter sensitive headers from the given list of request headers.
|
static Map<String,String> |
getHeadersToLog(io.apimatic.coreinterfaces.logger.configuration.HttpLoggingConfiguration loggingConfiguration,
Map<String,String> headers,
boolean maskSensitiveHeaders)
Retrieves the headers to be logged based on the provided logging configuration,
headers, and sensitivity masking configuration.
|
public static Map<String,String> getHeadersToLog(io.apimatic.coreinterfaces.logger.configuration.HttpLoggingConfiguration loggingConfiguration, Map<String,String> headers, boolean maskSensitiveHeaders)
loggingConfiguration - The logging configuration containing configurations for
header logging.headers - The headers to be evaluated for logging.maskSensitiveHeaders - Determines whether sensitive headers should be
masked in the log.public static Map<String,String> extractHeadersToLog(Map<String,String> headers, List<String> headersToInclude, List<String> headersToExclude)
headers - The map of headers.headersToInclude - The set of headers to include.headersToExclude - The set of headers to exclude.public static Map<String,String> filterSensitiveHeaders(Map<String,String> headers, List<String> headersToUnmask, boolean maskSensitiveHeaders)
headers - The list of headers to filter.headersToUnmask - The list of headers to unmask.maskSensitiveHeaders - Whether to mask sensitive headers or not.public static Map<String,String> extractIncludedHeaders(Map<String,String> headers, List<String> headersToInclude)
headers - The map of headers.headersToInclude - The set of headers to include.public static Map<String,String> extractExcludedHeaders(Map<String,String> headers, List<String> headersToExclude)
headers - The map of headers.headersToExclude - The set of headers to exclude.Copyright © 2025. All rights reserved.