Class RegexTemplateProcessor
- java.lang.Object
-
- org.apache.synapse.mediators.transform.pfutils.TemplateProcessor
-
- org.apache.synapse.mediators.transform.pfutils.RegexTemplateProcessor
-
public class RegexTemplateProcessor extends TemplateProcessor
TemplateProcessor implementation for Regex based templates
-
-
Field Summary
-
Fields inherited from class org.apache.synapse.mediators.transform.pfutils.TemplateProcessor
ESCAPE_BACK_SLASH_WITH_SIXTEEN_BACK_SLASHES, ESCAPE_BACKSPACE_WITH_EIGHT_BACK_SLASHES, ESCAPE_CRETURN_WITH_EIGHT_BACK_SLASHES, ESCAPE_DOLLAR_WITH_SIX_BACK_SLASHES, ESCAPE_DOLLAR_WITH_TEN_BACK_SLASHES, ESCAPE_DOUBLE_QUOTE_WITH_FIVE_BACK_SLASHES, ESCAPE_DOUBLE_QUOTE_WITH_NINE_BACK_SLASHES, ESCAPE_FORMFEED_WITH_EIGHT_BACK_SLASHES, ESCAPE_NEWLINE_WITH_EIGHT_BACK_SLASHES, ESCAPE_TAB_WITH_EIGHT_BACK_SLASHES, inputFactory, JSON_TYPE, STRING_TYPE, TEXT_TYPE, XML_TYPE
-
-
Constructor Summary
Constructors Constructor Description RegexTemplateProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init()
Execute pre-processing steps if neededString
processTemplate(String template, String mediaType, MessageContext synCtx)
Process the given template and return the output as String-
Methods inherited from class org.apache.synapse.mediators.transform.pfutils.TemplateProcessor
addPathArgument, convertStringToOM, escapeSpecialCharactersOfJson, escapeSpecialCharactersOfXml, escapeSpecialChars, escapeXMLSpecialChars, getArgValues, getFormat, getMediaType, getPathArgumentList, handleException, inferReplacementType, isEscapeXmlChars, isJson, isXML, prepareReplacementValue, setEscapeXmlChars, setFormat, setMediaType
-
-
-
-
Method Detail
-
processTemplate
public String processTemplate(String template, String mediaType, MessageContext synCtx)
Description copied from class:TemplateProcessor
Process the given template and return the output as String- Specified by:
processTemplate
in classTemplateProcessor
- Parameters:
template
- Template stringmediaType
- Output media typesynCtx
- MessageContext- Returns:
- The processed output
-
init
public void init()
Description copied from class:TemplateProcessor
Execute pre-processing steps if needed- Specified by:
init
in classTemplateProcessor
-
-