Examples of DownloadManager


Examples of org.jmule.core.downloadmanager.DownloadManager

        if (getItemCount() == 0)
          return no_items_menu;
        int download_status = NO_FILE;

        SharingManager sharing_manager = _core.getSharingManager();
        DownloadManager download_manager = _core.getDownloadManager();

        for (SearchResultItem item : getSelectedObjects()) {
          if (download_manager.hasDownload(item.getFileHash())) {
            try {
              if (!download_manager.getDownload(
                  item.getFileHash()).isStarted()) {
                download_status = DOWNLOAD_FILE;
              } else {
                download_status = SHARED_FILE;
              }
View Full Code Here

Examples of org.rioproject.impl.util.DownloadManager

                throw new IOException("Not an OAR");
            StagedData artifact = new StagedData();
            artifact.setLocation(archive.toExternalForm());
            artifact.setInstallRoot(dirName);
            artifact.setUnarchive(true);
            DownloadManager downloadMgr =
                new DownloadManager(FileUtils.getFilePath(installDir), artifact);
            DownloadRecord record = downloadMgr.download();
            return(record);
        } else {
            throw new IOException("Installation must be a .jar or an .oar");
        }
    }
View Full Code Here

Examples of org.springsource.ide.eclipse.commons.frameworks.core.downloadmanager.DownloadManager

      return bootVersion;
    }
  }
 
  private DirectedGraph createGraph() throws Exception {
    DownloadManager downloader = downloader();
    final DirectedGraph[] result = new DirectedGraph[]{null};
    downloader.doWithDownload(new TypeGraphFile(bootVersion, downloader), new DownloadRequestor() {
      @Override
      public void exec(File downloadedFile) throws Exception {
        result[0] = parseFrom(downloadedFile);
      }
    });
View Full Code Here

Examples of slash.navigation.download.DownloadManager

    public HgtFilesService(DataSourceManager dataSourceManager) {
        this.dataSourceManager = dataSourceManager;
    }

    public void initialize() {
        DownloadManager downloadManager = dataSourceManager.getDownloadManager();
        DataSourceService dataSourceService = dataSourceManager.getDataSourceService();

        for (DataSource dataSource : dataSourceService.getDataSources()) {
            if (DATASOURCE_URIS.contains(dataSource.getId()))
                hgtFiles.add(new HgtFiles(dataSource, downloadManager));
View Full Code Here

Examples of transfer.download.DownloadManager

    fileTable = new SharedFilesTable();

    searchManager = new SearchManager();

    uploadManager = new UploadManager();
    downloadManager = new DownloadManager();

    Runtime.getRuntime().addShutdownHook(new ShutdownHook());

    new Listener();
View Full Code Here

Examples of unibg.overencrypt.core.DownloadManager

          {
            if(firstFile){  //If first file retrieve AES Key

              if(ServerConfiguration.debug)
                JOptionPane.showMessageDialog(null, "EDIT PERMISSIONS - SEL. oldAclSEL: " + oldAclSEL + "\nFileID: " + fileID );
              DownloadManager downloadManager = new DownloadManager();
              SessionManager.saveSession(userWhoMakeRequest, downloadManager);
              downloadManager.setAcl(oldAclSEL);
              downloadManager.setDownloadManager(fileID, false, "0", "0");
              String IdToken = downloadManager.getID();
             
              if(ServerConfiguration.debug)
                JOptionPane.showMessageDialog(null, "EDIT PERMISSIONS - SEL. TokenID = " + IdToken);

              boolean firstStep = true;
              String nextToken = "";
              String jsonPath = ServerConfiguration.getTempFilePath() + "/" + tempFileName + "_json.txt";
              String nextPath = ServerConfiguration.getTempFilePath() + "/" + tempFileName + "_next.txt";
              aesKeyPath = ServerConfiguration.getTempFilePath() + "/" + tempFileName + "_AESKey.txt";

              boolean destinationACLReached;
              do{
                String json = downloadManager.createJson(nextToken,firstStep);
                if(ServerConfiguration.debug)
                  JOptionPane.showMessageDialog(null, "JSON importante: " + json);
                //write json.txt
                FileSystemUtils.writeFile(jsonPath, json);
                //FileUtility.writeFile(jsonPath, json);
                if(ServerConfiguration.debug)
                  JOptionPane.showMessageDialog(null, "controlla se esiste il file json - firstStep = " + firstStep);

                if(firstStep == true)
                {
                  //run wpes1
                  String command[] = {
                      ServerConfiguration.getEXECUTABLES_PATH() + "/wpes1_linux",
                      "dec1",
                      jsonPath,
                      PIN,
                      aesKeyPath,
                      IdToken,
                      nextPath
                  };
                  RunnerExecutables.execute(command);

                  firstStep = false;
                }
                else
                {
                  //run wpes1
                  String command[] = {
                      ServerConfiguration.getEXECUTABLES_PATH() + "/wpes1_linux",
                      "decn",
                      jsonPath,
                      aesKeyPath,
                      aesKeyPath,
                      IdToken,
                      nextPath
                  };
                  RunnerExecutables.execute(command);
                }

                //read next.txt
                if(ServerConfiguration.debug)
                  JOptionPane.showMessageDialog(null, "Ora legge nextPath");
                nextToken = FileSystemUtils.readFile(nextPath);
                //nextToken = FileUtility.readFile(nextPath);


                destinationACLReached = downloadManager.finished(nextToken);


                //remove Json.txt file from temp because the file is used
                //only by the executable and it will rewrite
                FileUtility.deleteTempFile(jsonPath);
View Full Code Here

Examples of util.io.DownloadManager

    deleteOutdatedFiles();

    mProgressMonitor.setMessage(mLocalizer.msg("info.7","Preparing download..."));

    // Create a download manager and add all the jobs
    mDownloadManager = new DownloadManager();
    TvDataBaseUpdater updater = new TvDataBaseUpdater(this, updateManager);

    // Add a receive or a update job for each channel and day
    DayProgramReceiveDH receiveDH = new DayProgramReceiveDH(this, updater);
    DayProgramUpdateDH updateDH   = new DayProgramUpdateDH(this, updater);
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.