Class RegexProcessor

java.lang.Object
com.github.eventmanager.processors.RegexProcessor
All Implemented Interfaces:
Processor

public class RegexProcessor extends Object implements Processor
The RegexProcessor class is responsible for processing events using regular expressions. The class contains a list of RegexEntry objects, each of which specifies a field name, a regular expression, and a replacement string. This objects can be set in the configuration file or during runtime.
  • Constructor Details

    • RegexProcessor

      public RegexProcessor()
  • Method Details

    • processKV

      public String processKV(String event)
      Description copied from interface: Processor
      Processes a key-value formatted event.
      Specified by:
      processKV in interface Processor
      Parameters:
      event - the key-value formatted event string.
      Returns:
      the processed event string.
    • processJSON

      public String processJSON(String event)
      Description copied from interface: Processor
      Processes a JSON formatted event.
      Specified by:
      processJSON in interface Processor
      Parameters:
      event - the JSON formatted event string.
      Returns:
      the processed event string.
    • processXML

      public String processXML(String event)
      Description copied from interface: Processor
      Processes an XML formatted event.
      Specified by:
      processXML in interface Processor
      Parameters:
      event - the XML formatted event string.
      Returns:
      the processed event string.