0
|
1 package de.mpiwg.itgroup.eSciDoc.Tools;
|
|
2 import java.io.ByteArrayInputStream;
|
|
3 import java.io.File;
|
|
4 import java.io.FileInputStream;
|
|
5 import java.io.FileNotFoundException;
|
|
6 import java.io.IOException;
|
|
7 import java.io.InputStream;
|
|
8 import java.net.MalformedURLException;
|
|
9 import java.net.URL;
|
|
10 import java.util.ArrayList;
|
|
11 import java.util.HashMap;
|
|
12 import java.util.List;
|
|
13 import java.util.regex.Matcher;
|
|
14 import java.util.regex.Pattern;
|
|
15
|
|
16 import javax.xml.rpc.ServiceException;
|
|
17
|
|
18 import org.apache.http.HttpEntity;
|
|
19 import org.apache.http.HttpResponse;
|
|
20 import org.apache.http.client.ClientProtocolException;
|
|
21 import org.apache.xmlrpc.XmlRpcException;
|
|
22 import org.apache.xmlrpc.client.XmlRpcClient;
|
|
23 import org.apache.xmlrpc.client.XmlRpcClientConfigImpl;
|
|
24 import org.jdom.Attribute;
|
|
25 import org.jdom.Document;
|
|
26 import org.jdom.Element;
|
|
27 import org.jdom.JDOMException;
|
|
28 import org.jdom.Namespace;
|
|
29 import org.jdom.input.SAXBuilder;
|
|
30 import org.jdom.output.XMLOutputter;
|
|
31 import org.jdom.xpath.XPath;
|
|
32
|
|
33
|
|
34
|
|
35 //import fedora.client.FedoraClient;
|
|
36 //import fedora.server.access.FedoraAPIA;
|
|
37 //import fedora.server.management.FedoraAPIM;
|
|
38
|
|
39
|
|
40
|
|
41 public class Ingestor {
|
|
42 protected EScidocBasicHandler eSciDocHandler = null;
|
|
43 protected String ESCIDOC_SERVER_URL;
|
|
44 protected String ZOPEPROVIDER;
|
|
45 private String USER;
|
|
46 private String PASSWORD;
|
|
47 private int PORT;
|
|
48
|
|
49 public Ingestor(String SERVER_URL,int ServerPort, String ZOPE, String User, String Password)
|
|
50 {
|
|
51 ESCIDOC_SERVER_URL = SERVER_URL;
|
|
52 ZOPEPROVIDER= ZOPE;
|
|
53 USER = User;
|
|
54 PASSWORD = Password;
|
|
55 PORT = ServerPort;
|
|
56
|
|
57 }
|
|
58 public String getID() throws MalformedURLException, XmlRpcException {
|
|
59 XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
|
|
60 XmlRpcClient client = new XmlRpcClient();
|
|
61 config.setServerURL(new URL(ZOPEPROVIDER+"/idGenerator"));
|
|
62 client.setConfig(config);
|
|
63 Object[] params = new Object[]{};
|
|
64 return (String) client.execute("generateId", params);
|
|
65 }
|
|
66
|
|
67
|
|
68
|
|
69 protected EScidocBasicHandler getEsciDocHandler(){
|
|
70 if (eSciDocHandler==null)
|
|
71 {
|
|
72 eSciDocHandler = new EScidocBasicHandler(ESCIDOC_SERVER_URL,PORT,USER,PASSWORD);
|
|
73 }
|
|
74 return eSciDocHandler;
|
|
75 }
|
|
76
|
|
77 public String ingest (String command,String xml) throws ServiceException, IOException{
|
|
78
|
|
79 //File ff = new File ("/tmp/test3.xml");
|
|
80
|
|
81 //FileInputStream stream = new FileInputStream(ff);
|
|
82 InputStream stream = new ByteArrayInputStream(xml.getBytes("utf-8"));
|
|
83
|
|
84
|
|
85
|
|
86 //DefaultHttpClient httpclient = login();
|
|
87
|
|
88
|
|
89
|
|
90 HttpResponse eScidocPut = getEsciDocHandler().eScidocPut(command, stream);
|
|
91
|
|
92
|
|
93 HttpEntity responseEntity = eScidocPut.getEntity();
|
|
94
|
|
95 System.out.println("----------------------------------------");
|
|
96 System.out.println(eScidocPut.getStatusLine());
|
|
97
|
|
98 InputStream st = responseEntity.getContent();
|
|
99 //System.out.println(EScidocBasicHandler.convertStreamToString(st));
|
|
100 String xmlret = EScidocBasicHandler.convertStreamToString(st);
|
|
101
|
|
102 return xmlret;
|
|
103
|
|
104 }
|
|
105
|
|
106 public void addToCollection(String collection_url,String newMember) throws ClientProtocolException, IOException{
|
|
107 HttpResponse ret = getEsciDocHandler().eScidocGet("/ir/container/"+collection_url);
|
|
108 String retTxt = EScidocBasicHandler.convertStreamToString(ret.getEntity().getContent());
|
|
109 String dateStamp = EScidocBasicHandler.getDateStamp(retTxt);
|
|
110
|
|
111
|
|
112
|
|
113 String param = "<param last-modification-date=\""+dateStamp+"\">";
|
|
114 param+="<id>"+newMember+"</id>";
|
|
115 param+="</param>";
|
|
116
|
|
117 ByteArrayInputStream stream = new ByteArrayInputStream(param.getBytes());
|
|
118 HttpResponse result = getEsciDocHandler().eScidocPost("/ir/container/"+collection_url+"/members/add",stream);
|
|
119
|
|
120 System.out.println("----->addResult:"+result.getStatusLine());
|
|
121
|
|
122 System.out.println("added "+newMember+" to "+collection_url);
|
|
123
|
|
124 }
|
|
125
|
|
126 public List<String> getAllMembers(String href) throws ClientProtocolException, IOException, JDOMException
|
|
127 {
|
|
128 String command=href+"/members/filter";
|
|
129 //String filter="<param><filter name=\"http://escidoc.de/core/01/structural-relations/context\">escidoc:7017</filter></param>";
|
|
130 String filter="<param><filter/></param>";
|
|
131 System.out.println(filter);
|
|
132 HttpResponse result = getEsciDocHandler().eScidocPost(command, new ByteArrayInputStream(filter.getBytes()));
|
|
133
|
|
134 InputStream stream = result.getEntity().getContent();
|
|
135 //System.out.println(EScidocBasicHandler.convertStreamToString(stream));
|
|
136 //stream.reset();
|
|
137 SAXBuilder builder = new SAXBuilder();
|
|
138
|
|
139
|
|
140 Document doc = builder.build(stream);
|
|
141 String pid = null;
|
|
142 XPath xpath = XPath.newInstance("//container:container");
|
|
143 xpath.addNamespace("container", EScidocNameSpaceContext.container);
|
|
144
|
|
145 List<Element> nodes = xpath.selectNodes(doc);
|
|
146
|
|
147 xpath = XPath.newInstance("//item:item");
|
|
148 xpath.addNamespace("item", EScidocNameSpaceContext.item);
|
|
149 nodes.addAll(nodes = xpath.selectNodes(doc));
|
|
150
|
|
151 List<String> ret = new ArrayList<String>();
|
|
152
|
|
153 for (Element el : nodes){
|
|
154 //XMLOutputter output = new XMLOutputter();
|
|
155 //output.output(el, System.out);
|
|
156 xpath =XPath.newInstance("@xlink:href");
|
|
157 xpath.addNamespace("xlink", EScidocNameSpaceContext.xlink);
|
|
158
|
|
159 Attribute idAtrr = (Attribute) xpath.selectSingleNode(el);
|
|
160
|
|
161 String id = idAtrr.getValue();
|
|
162
|
|
163
|
|
164
|
|
165 ret.add(id);
|
|
166
|
|
167 }
|
|
168
|
|
169 return ret;
|
|
170
|
|
171
|
|
172 }
|
|
173 public HashMap<String, String> getPIDsAndEscidocIdsOfCollections(String collectionContainer) throws ClientProtocolException, IOException, JDOMException{
|
|
174
|
|
175 HashMap<String, String> ret = new HashMap<String, String>();
|
|
176 String command="/ir/container/"+collectionContainer+"/members/filter";
|
|
177 //String filter="<param><filter name=\"http://escidoc.de/core/01/structural-relations/context\">escidoc:7017</filter></param>";
|
|
178 String filter="<param><filter/></param>";
|
|
179 System.out.println(filter);
|
|
180 HttpResponse result = getEsciDocHandler().eScidocPost(command, new ByteArrayInputStream(filter.getBytes()));
|
|
181
|
|
182 InputStream stream = result.getEntity().getContent();
|
|
183 //System.out.println(EScidocBasicHandler.convertStreamToString(stream));
|
|
184 //stream.reset();
|
|
185 SAXBuilder builder = new SAXBuilder();
|
|
186
|
|
187
|
|
188 Document doc = builder.build(stream);
|
|
189 String pid = null;
|
|
190 XPath xpath = XPath.newInstance("//container:container");
|
|
191 xpath.addNamespace("container", EScidocNameSpaceContext.container);
|
|
192
|
|
193 List<Element> nodes = xpath.selectNodes(doc);
|
|
194 for (Element el : nodes){
|
|
195 //XMLOutputter output = new XMLOutputter();
|
|
196 //output.output(el, System.out);
|
|
197 xpath =XPath.newInstance(".//container:properties/prop:pid");
|
|
198 xpath.addNamespace("prop", EScidocNameSpaceContext.prop);
|
|
199 xpath.addNamespace("container", EScidocNameSpaceContext.container);
|
|
200 Element pidEl =(Element) xpath.selectSingleNode(el);
|
|
201 pid =pidEl.getText();
|
|
202
|
|
203 Namespace ns = Namespace.getNamespace("xlink",EScidocNameSpaceContext.xlink);
|
|
204
|
|
205 xpath =XPath.newInstance("@xlink:href");
|
|
206 xpath.addNamespace(ns);
|
|
207
|
|
208 Attribute idAtrr = (Attribute) xpath.selectSingleNode(el);
|
|
209 List attrs = el.getAttributes();
|
|
210 String id = idAtrr.getValue();
|
|
211
|
|
212 String[] splitted = id.split("/");
|
|
213
|
|
214 ret.put(pid, splitted[splitted.length-1]);
|
|
215
|
|
216 }
|
|
217
|
|
218 return ret;
|
|
219
|
|
220
|
|
221 }
|
|
222 protected InputStream getXMLfromPID(String pid,String context)
|
|
223 throws ClientProtocolException, IOException {
|
|
224 String filter = "<param><filter name=\"http://escidoc.de/core/01/properties/pid\">";
|
|
225
|
|
226 filter += pid;
|
|
227 filter += "</filter></param>";
|
|
228
|
|
229 String command = "/ir/context/" + context
|
|
230 + "/resources/members/filter";
|
|
231 HttpResponse result = getEsciDocHandler().eScidocPost(command,
|
|
232 new ByteArrayInputStream(filter.getBytes()));
|
|
233
|
|
234 return result.getEntity().getContent();
|
|
235
|
|
236 }
|
|
237 public void deleteAllContentOfCollectionWithPID(String collection_Id, String pid) throws ClientProtocolException, IOException, JDOMException
|
|
238 {
|
|
239 InputStream xmlStream = getXMLfromPID(pid, collection_Id);
|
|
240 SAXBuilder builderA = new SAXBuilder();
|
|
241 Document docA = builderA.build(xmlStream);
|
|
242
|
|
243 XPath xpathA = XPath.newInstance("//member-list:member-list/container:container/@xlink:href");
|
|
244 xpathA.addNamespace("member-list", "http://www.escidoc.de/schemas/memberlist/0.7");
|
|
245 xpathA.addNamespace("container", EScidocNameSpaceContext.container);
|
|
246 xpathA.addNamespace("xlink", EScidocNameSpaceContext.xlink);
|
|
247
|
|
248 List <Attribute> nodesA = xpathA.selectNodes(docA);
|
|
249
|
|
250
|
|
251
|
|
252 for (Attribute nodeA: nodesA){
|
|
253 String id = nodeA.getValue();
|
|
254 String filter="<param><filter/></param>";
|
|
255 String command=id+"/members/filter";
|
|
256 HttpResponse result = getEsciDocHandler().eScidocPost(command, new ByteArrayInputStream(filter.getBytes()));
|
|
257
|
|
258 xmlStream = result.getEntity().getContent();
|
|
259
|
|
260
|
|
261 XMLOutputter xmlout = new XMLOutputter();
|
|
262 SAXBuilder builder = new SAXBuilder();
|
|
263 Document doc = builder.build(xmlStream);
|
|
264
|
|
265 XPath xpath = XPath.newInstance("//item:item");
|
|
266 xpath.addNamespace("item", EScidocNameSpaceContext.item);
|
|
267 List <Element> nodes = xpath.selectNodes(doc);
|
|
268
|
|
269 for (Element node: nodes)
|
|
270 {
|
|
271 xpath = XPath.newInstance("@xlink:href");
|
|
272 xpath.addNamespace("xlink", EScidocNameSpaceContext.xlink);
|
|
273 Attribute attribute = (Attribute) xpath.selectSingleNode(node);
|
|
274 String href = attribute.getValue();
|
|
275 delete(href);
|
|
276 }
|
|
277
|
|
278 xpath = XPath.newInstance("//container:container");
|
|
279 xpath.addNamespace("container", EScidocNameSpaceContext.container);
|
|
280 nodes = xpath.selectNodes(doc);
|
|
281
|
|
282 for (Element node: nodes)
|
|
283 {
|
|
284 xpath = XPath.newInstance("@xlink:href");
|
|
285 xpath.addNamespace("xlink", EScidocNameSpaceContext.xlink);
|
|
286 Attribute attribute = (Attribute) xpath.selectSingleNode(node);
|
|
287 String href = attribute.getValue();
|
|
288 removeMembers(href);
|
|
289 delete(href);
|
|
290 }
|
|
291 delete(id);
|
|
292
|
|
293 }
|
|
294 }
|
|
295
|
|
296 public void deleteAllContentOfCollection(String collection_Id) throws ClientProtocolException, IOException, JDOMException
|
|
297 {
|
|
298 HashMap<String, String> pids = getPIDsAndEscidocIdsOfCollections(collection_Id);
|
|
299 for (String id: pids.values()){
|
|
300 String filter="<param><filter/></param>";
|
|
301 String command="/ir/container/"+id+"/members/filter";
|
|
302 HttpResponse result = getEsciDocHandler().eScidocPost(command, new ByteArrayInputStream(filter.getBytes()));
|
|
303
|
|
304 InputStream xmlStream = result.getEntity().getContent();
|
|
305
|
|
306
|
|
307 XMLOutputter xmlout = new XMLOutputter();
|
|
308 SAXBuilder builder = new SAXBuilder();
|
|
309 Document doc = builder.build(xmlStream);
|
|
310
|
|
311 XPath xpath = XPath.newInstance("//item:item");
|
|
312 xpath.addNamespace("item", EScidocNameSpaceContext.item);
|
|
313 List <Element> nodes = xpath.selectNodes(doc);
|
|
314
|
|
315 for (Element node: nodes)
|
|
316 {
|
|
317 xpath = XPath.newInstance("@xlink:href");
|
|
318 xpath.addNamespace("xlink", EScidocNameSpaceContext.xlink);
|
|
319 Attribute attribute = (Attribute) xpath.selectSingleNode(node);
|
|
320 String href = attribute.getValue();
|
|
321 delete(href);
|
|
322 }
|
|
323
|
|
324 xpath = XPath.newInstance("//container:container");
|
|
325 xpath.addNamespace("container", EScidocNameSpaceContext.container);
|
|
326 nodes = xpath.selectNodes(doc);
|
|
327
|
|
328 for (Element node: nodes)
|
|
329 {
|
|
330 xpath = XPath.newInstance("@xlink:href");
|
|
331 xpath.addNamespace("xlink", EScidocNameSpaceContext.xlink);
|
|
332 Attribute attribute = (Attribute) xpath.selectSingleNode(node);
|
|
333 String href = attribute.getValue();
|
|
334 removeMembers(href);
|
|
335 delete(href);
|
|
336 }
|
|
337
|
|
338 }
|
|
339 }
|
|
340
|
|
341 private void removeMembers(String href) throws ClientProtocolException, IOException, JDOMException {
|
|
342
|
|
343 List<String> cols = getAllMembers(href);
|
|
344 HttpResponse result = getEsciDocHandler().eScidocGet(href);
|
|
345 String ret= EScidocBasicHandler.convertStreamToString(result.getEntity().getContent());
|
|
346 String ds = getEsciDocHandler().getDateStamp(ret);
|
|
347
|
|
348 String delString="<param last-modification-date=\""+ds+"\">";
|
|
349 for (String colid: cols){
|
|
350 String[] colids = colid.split("/");
|
|
351
|
|
352 delString+="<id>"+colids[colids.length-1]+"</id>";
|
|
353 }
|
|
354 delString += "</param>";
|
|
355 System.out.println(delString);
|
|
356 InputStream body = new ByteArrayInputStream(delString.getBytes());
|
|
357 result = getEsciDocHandler().eScidocPost(href+"/members/remove", body);
|
|
358 System.out.println("stat:"+result.getStatusLine());
|
|
359 try {
|
|
360 System.out.println(EScidocBasicHandler.convertStreamToString(result.getEntity().getContent()));
|
|
361 } catch (Exception e) {
|
|
362 // TODO Auto-generated catch block
|
|
363 e.printStackTrace();
|
|
364 }
|
|
365
|
|
366 }
|
|
367
|
|
368 private void delete(String href) throws ClientProtocolException, IOException {
|
|
369 System.out.println(href);
|
|
370 HttpResponse result = getEsciDocHandler().eScidocDelete(href);
|
|
371 System.out.println("stat:"+result.getStatusLine());
|
|
372 try {
|
|
373 System.out.println(EScidocBasicHandler.convertStreamToString(result.getEntity().getContent()));
|
|
374 } catch (Exception e) {
|
|
375 // TODO Auto-generated catch block
|
|
376 e.printStackTrace();
|
|
377 }
|
|
378
|
|
379 }
|
|
380 public String createMPIWGCollection(String title, String creator,String description,String parentID) throws Exception{
|
|
381
|
|
382 // get a PID for the Collection
|
|
383
|
|
384 String pid = getID();
|
|
385 eSciDocXmlObject obj = new eSciDocXmlObject("mpiwg:"+pid,"MPIWGContainerTemplate.xml");
|
|
386
|
|
387 HashMap<String,String> dcs = new HashMap<String,String>(); // Store for the metadata
|
|
388
|
|
389 //Verbinde dich mit der Collection Ÿber XML-rpc
|
|
390
|
|
391
|
|
392 dcs.put("description", description);
|
|
393 dcs.put("title", title);
|
|
394 dcs.put("creator", creator);
|
|
395 obj.insertDC(dcs);
|
|
396 //obj.setRelationship("info:fedora/echo:col1");
|
|
397 String xml = obj.printXML();
|
|
398 //System.out.println(xml);
|
|
399 String ret = ingest("/ir/container",xml);
|
|
400 String contid =EScidocBasicHandler.getId(ret);
|
|
401
|
|
402 if (parentID!=null)
|
|
403 addToCollection(parentID,contid);
|
|
404
|
|
405
|
|
406 return contid;
|
|
407
|
|
408 }
|
|
409
|
|
410 public String createContentModell() throws ClientProtocolException, IOException{
|
|
411 File cmf = new File("MPWGContentModelTemplate.xml");
|
|
412 FileInputStream stream = new FileInputStream(cmf);
|
|
413
|
|
414 HttpResponse ret = getEsciDocHandler().eScidocPost("/cmm/content-model", stream);
|
|
415
|
|
416 String retString = EScidocBasicHandler.convertStreamToString(ret.getEntity().getContent());
|
|
417 return EScidocBasicHandler.getId(retString);
|
|
418
|
|
419
|
|
420 }
|
|
421
|
|
422 public HttpResponse submitAnObject(String href,String comment) throws ClientProtocolException, IOException{
|
|
423 HttpResponse ret = getEsciDocHandler().eScidocGet(href);
|
|
424 String retTxt = EScidocBasicHandler.convertStreamToString(ret.getEntity().getContent());
|
|
425 String dateStamp = EScidocBasicHandler.getDateStamp(retTxt);
|
|
426
|
|
427 String param = "<param last-modification-date=\""+dateStamp+"\">";
|
|
428 param+="<comment>"+comment+"</comment>";
|
|
429 param+="</param>";
|
|
430
|
|
431 String command=href+"/submit";
|
|
432 HttpResponse result = getEsciDocHandler().eScidocPost(command, EScidocBasicHandler.convertStringToStream(param));
|
|
433
|
|
434 return result;
|
|
435
|
|
436
|
|
437 }
|
|
438 public HttpResponse addVersionPid(String href) throws ClientProtocolException, IOException, JDOMException{
|
|
439 HttpResponse ret = getEsciDocHandler().eScidocGet(href);
|
|
440 String retTxt = EScidocBasicHandler.convertStreamToString(ret.getEntity().getContent());
|
|
441
|
|
442 String dateStamp = EScidocBasicHandler.getDateStamp(retTxt);
|
|
443
|
|
444
|
|
445 String pid=EScidocBasicHandler.getPID(retTxt);
|
|
446 String versionNumber = EScidocBasicHandler.getLastVersionNumber(retTxt);
|
|
447
|
|
448 String vpid=pid+":"+versionNumber;
|
|
449
|
|
450 String param = "<param last-modification-date=\""+dateStamp+"\">";
|
|
451 param+="<pid>"+vpid+"</pid>";
|
|
452 param+="</param>";
|
|
453 String command=href+"/assign-version-pid";
|
|
454
|
|
455 HttpResponse result = getEsciDocHandler().eScidocPost(command, EScidocBasicHandler.convertStringToStream(param));
|
|
456
|
|
457 return result;
|
|
458
|
|
459
|
|
460 }
|
|
461
|
|
462 public HttpResponse releaseAnObject(String href,String comment) throws ClientProtocolException, IOException{
|
|
463 HttpResponse ret = getEsciDocHandler().eScidocGet(href);
|
|
464 String retTxt = EScidocBasicHandler.convertStreamToString(ret.getEntity().getContent());
|
|
465 String dateStamp = EScidocBasicHandler.getDateStamp(retTxt);
|
|
466
|
|
467 String param = "<param last-modification-date=\""+dateStamp+"\">";
|
|
468 param+="<comment>"+comment+"</comment>";
|
|
469 param+="</param>";
|
|
470
|
|
471 String command=href+"/release";
|
|
472 HttpResponse result = getEsciDocHandler().eScidocPost(command, EScidocBasicHandler.convertStringToStream(param));
|
|
473
|
|
474 return result;
|
|
475
|
|
476
|
|
477 }
|
|
478 public HttpResponse withdrawAnObject(String href, String comment) throws ClientProtocolException, IOException{
|
|
479 HttpResponse ret = getEsciDocHandler().eScidocGet(href);
|
|
480 String retTxt = EScidocBasicHandler.convertStreamToString(ret.getEntity().getContent());
|
|
481 String dateStamp = EScidocBasicHandler.getDateStamp(retTxt);
|
|
482
|
|
483 String param = "<param last-modification-date=\""+dateStamp+"\">";
|
|
484 param+="<comment>"+comment+"</comment>";
|
|
485 param+="</param>";
|
|
486
|
|
487 String command=href+"/withdraw";
|
|
488 HttpResponse result = getEsciDocHandler().eScidocPost(command, EScidocBasicHandler.convertStringToStream(param));
|
|
489
|
|
490 return result;
|
|
491 }
|
|
492 public HttpResponse reviseAnObject(String href, String comment) throws ClientProtocolException, IOException{
|
|
493 HttpResponse ret = getEsciDocHandler().eScidocGet(href);
|
|
494 String retTxt = EScidocBasicHandler.convertStreamToString(ret.getEntity().getContent());
|
|
495 String dateStamp = EScidocBasicHandler.getDateStamp(retTxt);
|
|
496
|
|
497 String param = "<param last-modification-date=\""+dateStamp+"\">";
|
|
498 param+="<comment>"+comment+"</comment>";
|
|
499 param+="</param>";
|
|
500
|
|
501 String command=href+"/revise";
|
|
502 HttpResponse result = getEsciDocHandler().eScidocPost(command, EScidocBasicHandler.convertStringToStream(param));
|
|
503
|
|
504 return result;
|
|
505
|
|
506 }
|
|
507 public String resubmitAnObject(String href, String comment) throws ClientProtocolException, IOException, ServiceException {
|
|
508 HttpResponse ret = getEsciDocHandler().eScidocGet(href);
|
|
509 String retTxt = EScidocBasicHandler.convertStreamToString(ret.getEntity().getContent());
|
|
510 System.out.println(retTxt);
|
|
511 retTxt=ingest("/ir/item", retTxt);
|
|
512 System.out.println(retTxt);
|
|
513 return retTxt;
|
|
514
|
|
515 }
|
|
516
|
|
517
|
|
518 }
|
|
519
|
|
520
|
|
521
|