Examples of LayerDownloader


Examples of org.OpenGeoPortal.Download.LayerDownloader

   *
   * @param downloaderKey a string key that identifies a concrete class of LayerDownloader
   * @return the concrete LayerDownloader object
   */
  public LayerDownloader getLayerDownloader(String downloaderKey){
    LayerDownloader layerDownloader = (LayerDownloader) beanFactory.getBean(downloaderKey);
    return layerDownloader;
  }
View Full Code Here

Examples of org.OpenGeoPortal.Download.LayerDownloader

      //get concrete class key from config
      List<LayerRequest> layerRequests = downloadMap.get(currentDownloader);
      MethodLevelDownloadRequest request = new MethodLevelDownloadRequest(layerRequests);

      try{
        LayerDownloader layerDownloader = this.getLayerDownloader(currentDownloader);
        layerDownloader.downloadLayers(requestId, request);
        requestList.add(request);

      } catch (Exception e) {
        e.printStackTrace();
        logger.error("runDownloadRequest: " + e.getMessage());
View Full Code Here

Examples of org.OpenGeoPortal.Download.LayerDownloader

   *
   * @param downloaderKey a string key that identifies a concrete class of LayerDownloader
   * @return the concrete LayerDownloader object
   */
  public LayerDownloader getLayerDownloader(String downloaderKey){
    LayerDownloader layerDownloader = (LayerDownloader) beanFactory.getBean(downloaderKey);
    if (layerDownloader == null){
      throw new NullPointerException("LayerDownloader could not be retrieved");
    }
    return layerDownloader;
  }
View Full Code Here

Examples of org.OpenGeoPortal.Download.LayerDownloader

    return layerDownloader;
  }
 
  private Boolean hasRequirements(String classKey, LayerRequest layer){
    //query the download method to see if it has the info it needs
    LayerDownloader testDownloader = getLayerDownloader(classKey);
    Boolean hasInfo = testDownloader.hasRequiredInfo(layer);
    return hasInfo;
  }
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.