public final class PropertiesBasedTraceFilter extends Object implements TraceFilterConfig
PropertyChain.
The default property chain may be obtained by the loadPropertyChain() method.TraceFilterConfig.Channel| Constructor and Description |
|---|
PropertiesBasedTraceFilter(PropertyChain propertyChain) |
PropertiesBasedTraceFilter(PropertyChain propertyChain,
String profileName) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
filterDeniedParams(Map<String,String> unfiltered,
TraceFilterConfig.Channel channel) |
int |
generatedInvocationIdLength() |
int |
generatedSessionIdLength() |
static PropertyChain |
loadPropertyChain()
Loads a layered property chain based on:
System properties
merged entries from all
/META-INF/Builder.properties files on the classpath (loaded in undefined order)
merged entries from all /META-INF/Builder.default.properties files on the classpath (loaded in undefined order)
|
boolean |
shouldGenerateInvocationId() |
boolean |
shouldGenerateSessionId() |
boolean |
shouldProcessContext(TraceFilterConfig.Channel channel) |
boolean |
shouldProcessParam(String paramName,
TraceFilterConfig.Channel channel) |
public PropertiesBasedTraceFilter(PropertyChain propertyChain)
public PropertiesBasedTraceFilter(PropertyChain propertyChain, String profileName)
public static PropertyChain loadPropertyChain()
/META-INF/Builder.properties files on the classpath (loaded in undefined order)/META-INF/Builder.default.properties files on the classpath (loaded in undefined order)public boolean shouldProcessParam(String paramName, TraceFilterConfig.Channel channel)
shouldProcessParam in interface TraceFilterConfigpublic boolean shouldProcessContext(TraceFilterConfig.Channel channel)
shouldProcessContext in interface TraceFilterConfigpublic boolean shouldGenerateInvocationId()
shouldGenerateInvocationId in interface TraceFilterConfigpublic int generatedInvocationIdLength()
generatedInvocationIdLength in interface TraceFilterConfigpublic boolean shouldGenerateSessionId()
shouldGenerateSessionId in interface TraceFilterConfigpublic int generatedSessionIdLength()
generatedSessionIdLength in interface TraceFilterConfigpublic Map<String,String> filterDeniedParams(Map<String,String> unfiltered, TraceFilterConfig.Channel channel)
filterDeniedParams in interface TraceFilterConfigCopyright © 2020. All rights reserved.