|
|
|
@ -19,7 +19,7 @@ import org.slf4j.LoggerFactory;
|
|
|
|
|
|
|
|
|
|
public abstract class StandardLocalInfraAlgorithm extends StandardLocalExternalAlgorithm {
|
|
|
|
|
|
|
|
|
|
private Logger LOGGER = LoggerFactory.getLogger(StandardLocalInfraAlgorithm.class);
|
|
|
|
|
private static final Logger LOGGER = LoggerFactory.getLogger(StandardLocalInfraAlgorithm.class);
|
|
|
|
|
|
|
|
|
|
private static final String SEND_MESSAGE_METHOD ="/messages/write-message";
|
|
|
|
|
|
|
|
|
@ -53,9 +53,8 @@ public abstract class StandardLocalInfraAlgorithm extends StandardLocalExternalA
|
|
|
|
|
//String jsonRequest = String.format("{\"subject\":\"%s\", \"body\":\"%s\", \"recipients\":[{\"id\":\"%s\"}]}",subject,body, email);
|
|
|
|
|
|
|
|
|
|
putMessage.setRequestEntity(new StringRequestEntity(obj.toJSONString(), "application/json" , "UTF-8"));
|
|
|
|
|
|
|
|
|
|
LOGGER.debug("json request is {}", obj.toJSONString());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
HttpClient httpClient = new HttpClient();
|
|
|
|
|
|
|
|
|
|
int returnedStatus = -1;
|
|
|
|
|