Package org.fao.oaipmh.requests

Examples of org.fao.oaipmh.requests.GetRecordRequest.execute()


      GetRecordRequest req = new GetRecordRequest(transport);
      req.setSchemaPath(new File(context.getAppPath() + Geonet.SchemaPath.OAI_PMH));
      req.setIdentifier(ri.id);
      req.setMetadataPrefix(ri.prefix);

      GetRecordResponse res = req.execute();

      Element md = res.getRecord().getMetadata();

            if(log.isDebugEnabled()) log.debug("    - Record got:\n"+ Xml.getString(md));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.