Package org.owasp.esapi.logging.cleaning
Class CompositeLogScrubber
- java.lang.Object
-
- org.owasp.esapi.logging.cleaning.CompositeLogScrubber
-
- All Implemented Interfaces:
LogScrubber
public class CompositeLogScrubber extends java.lang.Object implements LogScrubber
LogScrubber implementation which performs iterative delegate to an ordered List of LogScrubbers.
The results of the delegate list of LogScrubbers is additive, meaning that the the original message is passed to the first delegate and its return value is passed to the second (etc).
-
-
Constructor Summary
Constructors Constructor Description CompositeLogScrubber(java.util.List<LogScrubber> orderedCleaner)
Ctr.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
cleanMessage(java.lang.String message)
Updates the given message to account for restrictions for this implementation and returns the result.
-
-
-
Constructor Detail
-
CompositeLogScrubber
public CompositeLogScrubber(java.util.List<LogScrubber> orderedCleaner)
Ctr.- Parameters:
orderedCleaner
- Ordered List of delegate implementations. Cannot benull
-
-
Method Detail
-
cleanMessage
public java.lang.String cleanMessage(java.lang.String message)
Description copied from interface:LogScrubber
Updates the given message to account for restrictions for this implementation and returns the result.- Specified by:
cleanMessage
in interfaceLogScrubber
- Parameters:
message
- Original message to clean.- Returns:
- Cleaned message.
-
-