java.lang.Object
com.github.eventmanager.processors.RegexProcessor
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprocessJSON
(String event) Processes a JSON formatted event.Processes a key-value formatted event.processXML
(String event) Processes an XML formatted event.
-
Constructor Details
-
RegexProcessor
-
-
Method Details
-
processKV
Description copied from interface:Processor
Processes a key-value formatted event. -
processJSON
Description copied from interface:Processor
Processes a JSON formatted event.- Specified by:
processJSON
in interfaceProcessor
- Parameters:
event
- the JSON formatted event string.- Returns:
- the processed event string.
-
processXML
Description copied from interface:Processor
Processes an XML formatted event.- Specified by:
processXML
in interfaceProcessor
- Parameters:
event
- the XML formatted event string.- Returns:
- the processed event string.
-