git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-analysis/EcologicalEngineSmartExecutor@157426 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
4507c66a84
commit
967fc2038d
|
@ -19,7 +19,7 @@ import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
public abstract class StandardLocalInfraAlgorithm extends StandardLocalExternalAlgorithm {
|
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";
|
private static final String SEND_MESSAGE_METHOD ="/messages/write-message";
|
||||||
|
|
||||||
|
@ -53,7 +53,6 @@ public abstract class StandardLocalInfraAlgorithm extends StandardLocalExternalA
|
||||||
//String jsonRequest = String.format("{\"subject\":\"%s\", \"body\":\"%s\", \"recipients\":[{\"id\":\"%s\"}]}",subject,body, email);
|
//String jsonRequest = String.format("{\"subject\":\"%s\", \"body\":\"%s\", \"recipients\":[{\"id\":\"%s\"}]}",subject,body, email);
|
||||||
|
|
||||||
putMessage.setRequestEntity(new StringRequestEntity(obj.toJSONString(), "application/json" , "UTF-8"));
|
putMessage.setRequestEntity(new StringRequestEntity(obj.toJSONString(), "application/json" , "UTF-8"));
|
||||||
|
|
||||||
LOGGER.debug("json request is {}", obj.toJSONString());
|
LOGGER.debug("json request is {}", obj.toJSONString());
|
||||||
|
|
||||||
HttpClient httpClient = new HttpClient();
|
HttpClient httpClient = new HttpClient();
|
||||||
|
|
Loading…
Reference in New Issue