Examples of downloadFile()

  • org.jitterbit.integration.filetransfer.serverapi.FileDownloader.downloadFile()
    Requests that the file with the specified path on the server is downloaded to the client. @param path the path, on the server, of the file to download. @param callback a FileDownloadCallback that is notified of the outcome of the request.
  • org.jitterbit.integration.server.implementation.webservice.filemanagement.client.FileManager.downloadFile()
  • org.serviceconnector.api.cln.SCFileService.downloadFile()
    Download file with default operation timeout. @param remoteFileName the remote name of the file @param outStream the out stream to store download @throws SCServiceException create file session to SC failed
    download file from Server failed
    error message received from SC
  • org.wso2.carbon.core.commons.stub.filedownload.FileDownloadServiceStub.downloadFile()

  • Examples of org.infoglue.deliver.util.HttpHelper.downloadFile()

         
          String cmsBaseUrl = CmsPropertyHandler.getCmsFullBaseUrl();
          if(CmsPropertyHandler.getEnableDiskAssets().equals("true"))
          {
            HttpHelper httpHelper = new HttpHelper();
            httpHelper.downloadFile("" + cmsBaseUrl + "/DownloadProtectedAsset.action?digitalAssetId=" + digitalAssetVO.getId(), tmpOutputFile);
          }
         
          if(tmpOutputFile.exists())
          {
            if(logger.isInfoEnabled())
    View Full Code Here

    Examples of org.infoglue.deliver.util.HttpHelper.downloadFile()

              logger.warn("There was no asset blob in the database - checking the cms-disk - could be a mistake:" + digitalAssetVO.getDigitalAssetId());
             
              try
              {
                HttpHelper httpHelper = new HttpHelper();
                httpHelper.downloadFile("" + cmsBaseUrl + "/DownloadProtectedAsset.action?digitalAssetId=" + digitalAssetVO.getId(), tmpOutputFile);
             
                if(tmpOutputFile.exists())
                {
                  if(logger.isInfoEnabled())
                  {
    View Full Code Here

    Examples of org.infoglue.deliver.util.HttpHelper.downloadFile()

              logger.info("Was a deliver request and no asset was found on " + tmpOutputFile.getName() + " so let's get it from the cms.");
              String cmsBaseUrl = CmsPropertyHandler.getCmsFullBaseUrl();
              if(CmsPropertyHandler.getEnableDiskAssets().equals("true"))
              {
                HttpHelper httpHelper = new HttpHelper();
                httpHelper.downloadFile("" + cmsBaseUrl + "/DownloadProtectedAsset.action?digitalAssetId=" + digitalAssetVO.getId(), outputFile);
              }
            }
          }
          logger.info("end");
         
    View Full Code Here

    Examples of org.jahia.services.content.decorator.JCRFileContent.downloadFile()

                        String type = fileContent.getContentType();

                        // jcr:encoding is not mandatory
                        String encoding = fileContent.getEncoding();

                        InputStream stream = fileContent.downloadFile();
                        try {
                            Metadata metadata = new Metadata();
                            metadata.set(Metadata.CONTENT_TYPE, type);
                            if (encoding != null) {
                                metadata.set(Metadata.CONTENT_ENCODING, encoding);
    View Full Code Here

    Examples of org.jahia.services.googledocs.GoogleDocsService.downloadFile()

                                    getLocale(), "No document currently being edited in Google Docs can be found."));
                }
                try {
                    GoogleDocsService googleDocsService =
                            googleDocsServiceFactory.getDocsService(getRequest(), getResponse());
                    InputStream content = googleDocsService.downloadFile(uri);
                    try {
                        JCRNodeWrapper parent = node.getParent();
                        session.checkout(parent);
                        parent.uploadFile(node.getName(), content, node.getFileContent().getContentType());
                        session.save();
    View Full Code Here

    Examples of org.jboss.soa.esb.util.RemoteFileSystem.downloadFile()

          EPR epr = ListenerUtil.assembleEpr(config);
          if (epr instanceof FTPEpr)  {
            FTPEpr ftpEpr = (FTPEpr) epr;
            rfs = RemoteFileSystemFactory.getRemoteFileSystem(ftpEpr, true);
            rfs.setRemoteDir(FtpClientUtil.fileToFtpString(_inputDirectory));
            rfs.downloadFile(file.toString(), temp.getAbsolutePath());
            final byte[] contents = super.getFileContents(temp);
            temp.delete() ;
            return contents ;
          } else {
            throw new GatewayException("This Gateway only accepts FTP and SFTP.");
    View Full Code Here

    Examples of org.jboss.soa.esb.util.RemoteFileSystem.downloadFile()

                            }
                           
                            final RemoteFileSystem handler = getHandler() ;
                            try
                            {
                                handler.downloadFile(name, name);
                            }
                            finally
                            {
                                handler.quit() ;
                            }
    View Full Code Here

    Examples of org.jboss.soa.esb.util.RemoteFileSystem.downloadFile()

                    {
                            String name = file.getName();
                            final RemoteFileSystem handler = getHandler() ;
                            try
                            {
                                handler.downloadFile(name, name);
                            }
                            finally
                            {
                                handler.quit() ;
                            }
    View Full Code Here

    Examples of org.jitterbit.integration.filetransfer.serverapi.FileDownloader.downloadFile()

        @Override
        protected void runImpl() throws InterruptedException {
            setMessage(Strings.get("FileDownload.Job.Started"));
            IntegrationServer server = IntegrationServer.getInstance();
            FileDownloader call = server.getServerCall(FileDownloader.class);
            call.downloadFile(fileToDownload, callback);
            latch.await();
        }

        @Override
        protected void onJobCancelled() {
    View Full Code Here

    Examples of org.jitterbit.integration.server.implementation.webservice.filemanagement.client.FileManager.downloadFile()

                }
                ServerInfo server = getConfiguration().getServerInfo();
                // Call web service.
                CDownloadedFile requestedFile = new CDownloadedFile();
                requestedFile.setPath(path);
                CFileDownloadResult downloadResult = fileMgr.downloadFile(getConfiguration().getUserName(),
                                getConfiguration().getPassword(), requestedFile);

                CDownloadedFile downloadedFile = downloadResult.getDownloadedFile();

                CDownloadedFile[] cdependencies = downloadResult.getDependencies();
    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.