Project

General

Profile

« Previous | Next » 

Revision 6369

use NodelistUtil

View differences:

src/edu/ucsb/nceas/metacat/restservice/ResourceHandler.java
55 55
import org.dataone.client.auth.CertificateManager;
56 56
import org.dataone.mimemultipart.MultipartRequest;
57 57
import org.dataone.mimemultipart.MultipartRequestResolver;
58
import org.dataone.service.NodeListParser;
59 58
import org.dataone.service.exceptions.BaseException;
60 59
import org.dataone.service.exceptions.IdentifierNotUnique;
61 60
import org.dataone.service.exceptions.InsufficientResources;
......
86 85
import org.dataone.service.types.v1.Session;
87 86
import org.dataone.service.types.v1.SystemMetadata;
88 87
import org.dataone.service.types.v1.util.ChecksumUtil;
88
import org.dataone.service.types.v1.util.NodelistUtil;
89 89
import org.dataone.service.util.TypeMarshaller;
90 90
import org.jibx.runtime.BindingDirectory;
91 91
import org.jibx.runtime.IBindingFactory;
......
652 652
            //lookup the id in the registry
653 653
            URL url = new URL("http://cn.dataone.org/cn/node");
654 654
            InputStream urlis = url.openStream();
655
            Map<String,String> m = NodeListParser.parseNodeListFile(urlis);
655
            Map<String,String> m = NodelistUtil.mapNodeList(urlis);
656 656
            String nodeUrl = m.get(sourceNode);
657 657
            System.out.println("sourceNodeId: " + sourceNode);
658 658
            System.out.println("resolved sourceNodeUrl: " + nodeUrl);

Also available in: Unified diff