Revision 8763
Added by ben leinfelder about 10 years ago
OrcidService.java | ||
---|---|---|
9 | 9 |
import org.apache.log4j.Logger; |
10 | 10 |
import org.w3c.dom.Node; |
11 | 11 |
|
12 |
import edu.ucsb.nceas.metacat.replication.ReplicationService; |
|
13 | 12 |
import edu.ucsb.nceas.utilities.XMLUtilities; |
14 | 13 |
|
15 | 14 |
public class OrcidService { |
... | ... | |
49 | 48 |
|
50 | 49 |
String url = REST_URL + "?q=" + urlParameters + "&rows=1"; |
51 | 50 |
URL restURL = new URL(url); |
52 |
//InputStream is = restURL.openStream(); |
|
53 |
InputStream is = ReplicationService.getURLStream(restURL); |
|
51 |
InputStream is = restURL.openStream(); |
|
54 | 52 |
String results = IOUtils.toString(is); |
55 | 53 |
logMetacat.debug("RESULTS: " + results); |
56 | 54 |
Node doc = XMLUtilities.getXMLReaderAsDOMTreeRootNode(new StringReader(results)); |
Also available in: Unified diff
simplify lookup for classes and orcid. remove the "random" annotation code branches -- just too confusing to look at those bogus classes especially now that we have "real" generated annotations.