Revision 52031
Added by Miriam Baglioni almost 6 years ago
HTTPWithFileNameCollectorIterable.java | ||
---|---|---|
36 | 36 |
try { |
37 | 37 |
if(isJson) |
38 | 38 |
meta = meta.substring(0, meta.length() - 1) + ",'downloadFileUrl':'" + path.substring(0, path.indexOf(".json")) + ".pdf'}"; |
39 |
else |
|
40 |
meta = meta.substring(0, meta.length() - 10) + "<downloadFileUrl>'" + path.substring(0, path.indexOf(".xml")) + ".pdf</downloadFileUrl></article>"; |
|
39 |
else{ |
|
40 |
int index = meta.lastIndexOf("</"); |
|
41 |
meta = meta.substring(0, index) + "<downloadFileUrl>" + path.substring(0, path.indexOf(".xml")) + ".pdf</downloadFileUrl>" + meta.substring(index); |
|
42 |
} |
|
43 |
|
|
41 | 44 |
}catch(Exception ex){ |
42 | 45 |
log.info("not file with extension .json or .xml"); |
43 | 46 |
} |
Also available in: Unified diff
modified update of information in xml metadata