Project

General

Profile

« Previous | Next » 

Revision 49735

Fixed ENA Resolver

View differences:

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