Examples of CswCatalogCapabilities


Examples of com.esri.gpt.server.csw.client.CswCatalogCapabilities

  try {
    this.setSelectedHarvestSitePostUrl(null);
    CswCatalog cswCatalog = new CswCatalog(this.getSelectedHarvestSiteUrl(),
    this.getSelectedHarvestSiteName(), SearchConfig.getConfiguredInstance().getGptXslProfiles().getCswProfiles().getProfileById(this.getSelectedHarvestSiteProfile()));
    cswCatalog.connect();
    CswCatalogCapabilities cap = cswCatalog.getCapabilities();
    this.setSelectedHarvestSitePostUrl(cap.get_getRecordsPostURL());
    this.setSelectedHarvestSiteGetRecordUrl(cap.get_getRecordByIDGetURL());
   
  } catch (Exception e) {
    throw new SearchException("Could not get capabilties from url=: "
        + this.getSelectedHarvestSiteUrl() + " : "
        + e.getMessage(), e);
View Full Code Here

Examples of com.esri.gpt.server.csw.client.CswCatalogCapabilities

  //application caching.  Currently Search Factor caches
 
  try {
    initAttributes();
    //String key = this.getCapabiltiesUrl + ":" + this.getProfileId();
    CswCatalogCapabilities cap = null;
    //cap = CAPABILITIES_CACHE.get(key);
    //if(cap == null) {
       CswCatalog cswCatalog = new CswCatalog(this.getGetCapabiltiesUrl(), "",
           readCswProfiles().getProfileById(this.getProfileId()));
       cswCatalog.setConnectionTimeoutMs(this.getConnectionTimeoutMs());
       cswCatalog.setResponseTimeoutMs(this.getResponseTimeoutMs());
       cswCatalog.connect();
       cap = cswCatalog.getCapabilities();
       this.setCapabilities(cap);
       //CAPABILITIES_CACHE.put(key, cap);
    //}
    this.setGetMetadataRecordUrl(cap.get_getRecordByIDGetURL());
    this.setGetRecordsUrl(cap.get_getRecordsPostURL());
  } catch (Exception e) {
    throw new SearchException("Could not get capabilities from  "
        + this.getGetCapabiltiesUrl() + " : " + e.getMessage(), e);
  }
}
View Full Code Here

Examples of com.esri.gpt.server.csw.client.CswCatalogCapabilities

* @throws SearchException
*/
@Override
public String getKeyAbstract() throws SearchException {

  CswCatalogCapabilities cap = this.getCapabilities();
  if(cap != null) {
    return Val.chkStr(cap.getTitle()) + " : "
      + Val.chkStr(cap.getAbstractText());
  }
  String abs = null;
  String uuid = this.getKey();
  try {
    GptRepository repos = new GptRepository();
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.