HttpLogOptions.setAllowedHeaderNames(Set<String> allowedHeaderNames) Method

Definition

Sets the given whitelisted headers that should be logged.

This method sets the provided header names to be the whitelisted header names which will be logged for all HTTP requests and responses, overwriting any previously configured headers. Additionally, users can use addAllowedHeaderName(String allowedHeaderName) or getAllowedHeaderNames() to add or remove more headers names to the existing set of allowed header names.

public HttpLogOptions setAllowedHeaderNames(Set<String> allowedHeaderNames)

Parameters

allowedHeaderNames
java.util.Set<java.lang.String>

The list of whitelisted header names from the user.

Returns

The updated HttpLogOptions object.

Applies to