Revision 49735
Added by Sandro La Bruzzo over 6 years ago
ENAResolver.java | ||
---|---|---|
25 | 25 |
protected DLIResolvedObject resolve(String pid, String pidType) { |
26 | 26 |
if (canResolvePid(pidType)) { |
27 | 27 |
try { |
28 |
URL r = new URL(String.format(link, pid, pid)); |
|
29 |
final String xmlInput = IOUtils.toString(r.openStream()); |
|
28 |
// System.out.println("url = " + String.format(link, pid, pid)); |
|
29 |
// URL r = new URL(String.format(link, pid, pid)); |
|
30 |
final String xmlInput = requestURL(String.format(link, pid, pid)); |
|
30 | 31 |
return new ENAParser().parser(xmlInput, pid, pidType); |
31 | 32 |
|
32 | 33 |
} catch (Throwable e) { |
Also available in: Unified diff
Fixed ENA Resolver