Package com.esri.gpt.catalog.arcims

Examples of com.esri.gpt.catalog.arcims.HarvestMetadataRequest


}

public String read(String sourceUri) throws IOException {
  LOGGER.finer("Reading metadata of source URI: \"" +sourceUri+ "\" through proxy: "+this);
  try {
    HarvestMetadataRequest harvestMetadataRequest = new HarvestMetadataRequest();
    harvestMetadataRequest.setService(info.newService());
    harvestMetadataRequest.setCredentials(info.newCredentials());
    harvestMetadataRequest.executeHarvest(sourceUri);

    String md = harvestMetadataRequest.getMetadata();
    if (md.length()==0) {
      LOGGER.finer("Reading metadata of source URI: \"" +sourceUri+ "\" through proxy: "+this+"; Received no METADATA response.");
      return "";
    }
View Full Code Here

TOP

Related Classes of com.esri.gpt.catalog.arcims.HarvestMetadataRequest

Copyright © 2018 www.massapicom. 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.