Class ParamRefTools


  • public class ParamRefTools
    extends Object
    Various tool methods for processing events.
    Author:
    Ulrich Kreher
    • Constructor Detail

      • ParamRefTools

        public ParamRefTools()
    • Method Detail

      • replaceParams

        public static String replaceParams​(String rawString,
                                           InputDataContext dataContext)
                                    throws ConfigurationException
        Replaces all parameter references in the designated string with the corresponding input parameter values from the data context.
        Parameters:
        rawString - The raw string containing parameter references to be replaced.
        dataContext - The data context to retrieve the parameter values from.
        Returns:
        The string which has the parameter references replaced to be used for the mail event data source.
        Throws:
        ConfigurationException - If a parameter in the raw string cannot be replaced with the designated data context, a ConfigurationException will be thrown.