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 ObjectConfiguration for the REST-TracerRestRequestTracer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTracerConfiguration.TracerConfigurationBuilder
-
Constructor Summary
Constructors Constructor Description TracerConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods 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()
-
-
-
Method Detail
-
headerBlacklisted
public boolean headerBlacklisted(String headerName)
-
headersToBeMasked
public boolean headersToBeMasked(String headerName)
-
attributeWhitelisted
public boolean attributeWhitelisted(String attributeName)
-
builder
public static TracerConfiguration.TracerConfigurationBuilder builder()
-
getHeaderBlacklist
public List<String> 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
public List<String> 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
public List<String> getAttributesWhitelist()
A list of request-attributes to log. All attributes matching any of this prefixes are logged
-
getApplicationName
public String getApplicationName()
Name of the current application, to be added as Header. By default ${spring.application.name}
-
getUriFilterPattern
public Pattern getUriFilterPattern()
-
isFullResponseDetailsInMessage
public boolean isFullResponseDetailsInMessage()
-
setHeaderBlacklist
public void setHeaderBlacklist(List<String> headerBlacklist)
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
public void setHeaderMasked(List<String> headerMasked)
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
public void setAttributesWhitelist(List<String> attributesWhitelist)
A list of request-attributes to log. All attributes matching any of this prefixes are logged
-
setApplicationName
public void setApplicationName(String applicationName)
Name of the current application, to be added as Header. By default ${spring.application.name}
-
setUriFilterPattern
public void setUriFilterPattern(Pattern uriFilterPattern)
-
setFullResponseDetailsInMessage
public void setFullResponseDetailsInMessage(boolean fullResponseDetailsInMessage)
-
canEqual
protected boolean canEqual(Object other)
-
-