Package org.OpenGeoPortal.Download

Examples of org.OpenGeoPortal.Download.DownloadRequest


    this.imageRequests = new ArrayList<ImageRequest>();
    this.exportRequests = new ArrayList<GeoCommonsExportRequest>();

    for (String requestId: requestIdsArr){
      try {
        DownloadRequest dlRequest = requestStatusManager.getDownloadRequest(UUID.fromString(requestId));
        if (dlRequest != null){
          this.downloadRequests.add(dlRequest);
        }
      } catch (Exception e){
        //e.printStackTrace();
View Full Code Here


  final static long INTERVAL = 500;//milliseconds
 
  @RequestMapping(method=RequestMethod.GET)
  public void getDownload(@RequestParam("requestId") String requestId, HttpServletResponse response) throws IOException, InterruptedException  {
   
    DownloadRequest layerDownloadRequest = requestStatusManager.getDownloadRequest(UUID.fromString(requestId));
    File downloadPackage = layerDownloadRequest.getDownloadPackage();
    long counter = 0;
    //a final check.  should never get here via the client
    while (!downloadPackage.exists()){
      Thread.sleep(INTERVAL);
      counter += INTERVAL;
View Full Code Here

TOP

Related Classes of org.OpenGeoPortal.Download.DownloadRequest

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.