Examples of CswCatalog


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

*/
protected void writePostGetUrl() throws SearchException {
 
  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=: "
View Full Code Here

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

* @param profile the profile
*
* @return the csw catalog
*/
protected CswCatalog doGetCswCatalog(String url, String name, String profile) throws SearchException {
  CswCatalog cswCatalog = new CswCatalog(this.getSelectedHarvestSiteUrl(),
      this.getSelectedHarvestSiteName(), SearchConfig.getConfiguredInstance().
             getGptXslProfiles().getCswProfiles().getProfileById(this.getSelectedHarvestSiteProfile()));
  return cswCatalog;
}
View Full Code Here

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

* Gets Csw Client catalog.
* @return catalog
* @throws IOException if getting profile failed
*/
public CswCatalog newCatalog() throws IOException {
  CswCatalog cswCatalog = new CswCatalog();

  cswCatalog.setProfile(getProfile());
  cswCatalog.setUrl(getUrl());
  cswCatalog.setBatchHttpClient(getBatchHttpClient());

  return cswCatalog;
}
View Full Code Here

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

    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());
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.