Initial import.

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/data-miner-executor@176787 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2019-01-24 13:22:45 +00:00
parent 6071805018
commit 72e34232b9
1 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ public class InvocationManager {
private static Logger logger = LoggerFactory.getLogger(InvocationManager.class);
private static final String INVOCATION_NAME = "DMInvocation";
private static final String INVOCATION_JSON_EXTENTION = ".json";
private static final String INVOCATION_XML_EXTENTION = ".xml";
private DataMinerInvocationManager manager;
public InvocationManager() throws ServiceException {
@ -37,7 +37,7 @@ public class InvocationManager {
try {
logger.info("Read DataMiner Invocation Model");
Path destination = Files.createTempFile(INVOCATION_NAME, INVOCATION_JSON_EXTENTION);
Path destination = Files.createTempFile(INVOCATION_NAME, INVOCATION_XML_EXTENTION);
logger.info("Destination: [destination=" + destination + "]");
logger.info("Read invocation: [fileUrl=" + invocationFileUrl+"]");
@ -47,7 +47,7 @@ public class InvocationManager {
DataMinerInvocation dmInvocation=null;
try (InputStream is = uc.getInputStream();) {
dmInvocation = manager.unmarshalingJSON(uc.getInputStream(), true);
dmInvocation = manager.unmarshalingXML(uc.getInputStream(), true);
}
logger.debug("DMInvocation: "+dmInvocation);