public class ExpressionTemplate extends Object
XMessageContext
as input.
This can be used as an alternative to XBaseUtils.extractStringByReplacingPlaceHolders(XMessageContext, String)
which does all the pattern matching and replacement work at runtime.Constructor and Description |
---|
ExpressionTemplate(String expressionString) |
Modifier and Type | Method and Description |
---|---|
String |
evaluate(XMessageContext xMessageContext)
Once a LogTemplate is constructed with the expression string, this method can be used to evaluate the template at
runtime.
|
public ExpressionTemplate(String expressionString)
public String evaluate(XMessageContext xMessageContext)
xMessageContext
- message contextString
representing evaluated log templateCopyright © 2016–2019 AdroitLogic. All rights reserved.