Class 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).
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CompositeLogScrubber

        public CompositeLogScrubber​(java.util.List<LogScrubber> orderedCleaner)
        Ctr.
        Parameters:
        orderedCleaner - Ordered List of delegate implementations. Cannot be null
    • 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 interface LogScrubber
        Parameters:
        message - Original message to clean.
        Returns:
        Cleaned message.