public class XBaseUtils extends Object
Constructor and Description |
---|
XBaseUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
extractStringByReplacingPlaceHolders(XMessageContext xMessageContext,
String inputString)
This method will replaces all the place holders of the inputString from the correct values which will be
extracted from the xMessageContext.
|
public static String extractStringByReplacingPlaceHolders(XMessageContext xMessageContext, String inputString)
@{message.headers.<header_name>}
- message header@{message.headers}
- all message header@{message.properties}
- all message property@{message.payload}
- payload@{message.id}
- message id@{variable.<variable_name>}
- variable@{current.timestamp.<timestamp_pattern>}
- current timestamp formatted to given pattern@{current.timestamp}
- current timestamp formatted to default yyMMddHHmmssZ patternSimpleDateFormat
.xMessageContext
- current message context to extract out required properties, headers, payload and variablesinputString
- string which contains the input string which can contains place holders for message properties,
headers and variables etc.Copyright © 2016–2019 AdroitLogic. All rights reserved.