|
|
@ -186,6 +186,8 @@ public class HTTPEventAdapter implements OutputEventAdapter {
|
|
|
|
String payload = message.toString();
|
|
|
|
String payload = message.toString();
|
|
|
|
|
|
|
|
|
|
|
|
if ("true".equals(dynamicProperties.get(HTTPEventAdapterConstants.ADAPTER_MESSAGE_URL_TEMPLATED))) {
|
|
|
|
if ("true".equals(dynamicProperties.get(HTTPEventAdapterConstants.ADAPTER_MESSAGE_URL_TEMPLATED))) {
|
|
|
|
|
|
|
|
contentType = "application/json";
|
|
|
|
|
|
|
|
payload = payload.replace("'", "\\\"");
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
JSONParser jsonParser = new JSONParser();
|
|
|
|
JSONParser jsonParser = new JSONParser();
|
|
|
|
JSONObject jsonPayload = (JSONObject) jsonParser.parse(payload);
|
|
|
|
JSONObject jsonPayload = (JSONObject) jsonParser.parse(payload);
|
|
|
|