Class TracerConfiguration
java.lang.Object
ch.admin.bag.covidcertificate.rest.tracing.TracerConfiguration
@Configuration
@PropertySource("classpath:tracer.properties")
@ConfigurationProperties("jeap.rest.tracing")
@ComponentScan
@ConditionalOnWebApplication
public class TracerConfiguration
extends Object
Configuration for the REST-Tracer
RestRequestTracer-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTracerConfiguration.TracerConfigurationBuilder -
Constructor Summary
Constructors Constructor Description TracerConfiguration() -
Method Summary
Modifier and Type Method Description booleanattributeWhitelisted(String attributeName)static TracerConfiguration.TracerConfigurationBuilderbuilder()protected booleancanEqual(Object other)booleanequals(Object o)StringgetApplicationName()Name of the current application, to be added as Header.List<String>getAttributesWhitelist()A list of request-attributes to log.List<String>getHeaderBlacklist()A list of headers that shall not be logged, e.g.List<String>getHeaderMasked()A list of headers that must be masked, e.g.PatterngetUriFilterPattern()inthashCode()booleanheaderBlacklisted(String headerName)booleanheadersToBeMasked(String headerName)booleanisFullResponseDetailsInMessage()voidsetApplicationName(String applicationName)Name of the current application, to be added as Header.voidsetAttributesWhitelist(List<String> attributesWhitelist)A list of request-attributes to log.voidsetFullResponseDetailsInMessage(boolean fullResponseDetailsInMessage)voidsetHeaderBlacklist(List<String> headerBlacklist)A list of headers that shall not be logged, e.g.voidsetHeaderMasked(List<String> headerMasked)A list of headers that must be masked, e.g.voidsetUriFilterPattern(Pattern uriFilterPattern)StringtoString()
-
Constructor Details
-
TracerConfiguration
public TracerConfiguration()
-
-
Method Details
-
headerBlacklisted
-
headersToBeMasked
-
attributeWhitelisted
-
builder
-
getHeaderBlacklist
A list of headers that shall not be logged, e.g. headers from CF All headers matching any of this prefixes is ignored from logging -
getHeaderMasked
A list of headers that must be masked, e.g. if they contain sensitive information All headers matching any of this prefixes is logged only as *** -
getAttributesWhitelist
A list of request-attributes to log. All attributes matching any of this prefixes are logged -
getApplicationName
Name of the current application, to be added as Header. By default ${spring.application.name} -
getUriFilterPattern
-
isFullResponseDetailsInMessage
public boolean isFullResponseDetailsInMessage() -
setHeaderBlacklist
A list of headers that shall not be logged, e.g. headers from CF All headers matching any of this prefixes is ignored from logging -
setHeaderMasked
A list of headers that must be masked, e.g. if they contain sensitive information All headers matching any of this prefixes is logged only as *** -
setAttributesWhitelist
A list of request-attributes to log. All attributes matching any of this prefixes are logged -
setApplicationName
Name of the current application, to be added as Header. By default ${spring.application.name} -
setUriFilterPattern
-
setFullResponseDetailsInMessage
public void setFullResponseDetailsInMessage(boolean fullResponseDetailsInMessage) -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-