Examples of addDownload()


Examples of com.adito.core.FileDownloadPageInterceptListener.addDownload()

        String data = KeyStoreManager.getInstance(KeyStoreManager.DEFAULT_KEY_STORE).generateCSR(Property.getProperty(new ContextKey("webServer.alias")), pw);
        FileWriter fos = new FileWriter(f);
        fos.write(data);
        fos.flush();
        fos.close();
        l.addDownload(new CSRDownload(f, f.getName(), "application/octet-stream", mapping.findForward("success"),
                        "downloadCSR.message", "keystore"));
        return mapping.findForward("success");
    }

    /* (non-Javadoc)
 
View Full Code Here

Examples of com.adito.core.FileDownloadPageInterceptListener.addDownload()

        FileOutputStream out = new FileOutputStream(clientCertFile);
        X509Certificate cert = (X509Certificate) systemClientStore.getCertificate(sel);
        out.write(cert.getEncoded());
        out.flush();
        out.close();
        l.addDownload(new CSRDownload(clientCertFile, clientCertFile.getName(), "application/octet-stream", mapping
                        .findForward("success"), "exportCertificate.message", "keystore", sel));
        return mapping.findForward("success");
    }

    /**
 
View Full Code Here

Examples of com.adito.core.FileDownloadPageInterceptListener.addDownload()

          userStore.load(null, null);
          userStore.setKeyEntry(sel, keypair, ((ShowKeyStoreForm) form).getPassword().toCharArray(), ((ShowKeyStoreForm) form).getSelectedKeyStore().getCertificateChain(sel));
          userStore.store(out, ((ShowKeyStoreForm) form).getPassword().toCharArray());
          out.close();
        }
        l.addDownload(new CSRDownload(clientCertFile, clientCertFile.getName(), "application/octet-stream", mapping.findForward("success"),
                        "exportPrivateKey.message", "keystore", sel));
        return mapping.findForward("success");
    }

    public int getNavigationContext(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {
View Full Code Here

Examples of com.adito.core.FileDownloadPageInterceptListener.addDownload()

      FileDownloadPageInterceptListener.INTERCEPT_ID);
    if (l == null) {
      l = new FileDownloadPageInterceptListener();
      CoreUtil.addPageInterceptListener(request.getSession(), l);
    }
    int id = l.addDownload(new ZipDownload(fileSystemForm.getLaunchSession(),
            fwd,
            fileSystemForm.getPath(),
            uris,
            new ActionForward("/fileSystem.do?actionTarget=list&path=" + fileSystemForm.getPath() + "&" + LaunchSession.LAUNCH_ID + "=" + fileSystemForm.getLaunchId()),
            "downloadZip.message",
View Full Code Here

Examples of org.gudy.azureus2.plugins.download.DownloadManager.addDownload()

                 
                  boolean auto_start = manager.shouldAutoStart( torrent );
                 
                  if ( auto_start ){
                 
                    download = dm.addDownload( torrent );
                   
                  }else{
                 
                    download = dm.addDownloadStopped( torrent, null, null );
                  }
View Full Code Here

Examples of org.gudy.azureus2.plugins.download.DownloadManager.addDownload()

                            try {
                                TorrentManager torrentManager = pluginInterface.getTorrentManager()
                                try {
                         Torrent new_torrent =  torrentManager.createFromBEncodedInputStream(data);
                           DownloadManager dm = pluginInterface.getDownloadManager();
                           dm.addDownload(new_torrent);
                                } catch (TorrentException e1) {
                                   
                                    e1.printStackTrace();
                                } catch (DownloadException e2) {
                                    e2.printStackTrace();
View Full Code Here

Examples of org.jmule.core.downloadmanager.DownloadManager.addDownload()

          if (!download_manager.getDownload(item.getFileHash())
              .isStarted())
            download_manager.startDownload(item.getFileHash());
          continue;
        }
        download_manager.addDownload(item);
        download_manager.startDownload(item.getFileHash());
        search_results.updateRow(item);
      } catch (DownloadManagerException e) {
        e.printStackTrace();
      }
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.