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.serviceconnector.api.cln.SCFileService.downloadFile()

          service.uploadFile(targetFileName, inpStream); // regular upload

          localFile = new File("src/main/resources/downloadContent.txt");
          FileOutputStream outStream = new FileOutputStream(localFile);
          targetFileName = "uploadContent.txt";
          service.downloadFile(targetFileName, outStream); // regular download
          outStream.close();
        } catch (Exception e) {
          LOGGER.error("run", e);
        } finally {
          try {
    View Full Code Here

    Examples of org.serviceconnector.api.cln.SCFileService.downloadFile()

        try {
          // try to connect client
          client = connectClientToService(service);
          SCFileService scFileService = client.newFileService(service.getName());
          dstStream = new FileOutputStream(dstFile);
          scFileService.downloadFile(remoteFile, dstStream);
          writer.writeStartElement("message");
          writer.writeCharacters(dstFile.getName() + "  " + status);
          writer.writeEndElement();
        } catch (Exception e) {
          status = "failed";
    View Full Code Here

    Examples of org.serviceconnector.api.cln.SCFileService.downloadFile()

        localFile = "downloadContent.txt";
        localpath = "src/main/resources/";
        remoteFileName = "uploadedFile.txt";
        File outputFile = new File(localpath + localFile);
        FileOutputStream outStream = new FileOutputStream(outputFile);
        service.downloadFile(180, remoteFileName, outStream);
        outStream.close();
        FileUtility.waitExists(localpath + localFile, 0);
        FileUtility.deleteFile(localpath + localFile);
        FileUtility.deleteFile(TestConstants.filServiceLocation2 + remoteFileName);
      }
    View Full Code Here

    Examples of org.serviceconnector.api.cln.SCFileService.downloadFile()

        localFile = "download200MBContent.txt";
        localpath = "src/main/resources/";
        remoteFileName = "upload200MBFile.txt";
        File outputFile = new File(localpath + localFile);
        FileOutputStream outStream = new FileOutputStream(outputFile);
        service.downloadFile(300, remoteFileName, outStream); // regular download
        outStream.close();
        FileUtility.waitExists(localpath + localFile, 0);
        FileUtility.deleteFile(localpath + localFile);
        FileUtility.deleteFile(TestConstants.filServiceLocation2 + remoteFileName);
      }
    View Full Code Here

    Examples of org.serviceconnector.api.cln.SCFileService.downloadFile()

        try {
          // try to connect client
          client = connectClientToService(service);
          SCFileService scFileService = client.newFileService(service.getName());
          dstStream = new FileOutputStream(dstFile);
          scFileService.downloadFile(remoteFile, dstStream);
          writer.writeStartElement("message");
          writer.writeCharacters(dstFile.getName() + "  " + status);
          writer.writeEndElement();
        } catch (Exception e) {
          status = "failed";
    View Full Code Here

    Examples of org.wso2.carbon.core.commons.stub.filedownload.FileDownloadServiceStub.downloadFile()

                        getServletContext(), request.getSession());

                String serviceEPR = serverURL + "FileDownloadService";
                try {
                    FileDownloadServiceStub stub = new FileDownloadServiceStub(configCtxService.getClientConfigContext(), serviceEPR);
                    DataHandler dataHandler = stub.downloadFile(fileID);
                    if (dataHandler != null) {
                        InputStream in = dataHandler.getDataSource().getInputStream();
                        int nextChar;
                        while ((nextChar = in.read()) != -1) {
                            out.write((char) nextChar);
    View Full Code Here

    Examples of org.wso2.carbon.core.commons.stub.filedownload.FileDownloadServiceStub.downloadFile()

                    if(CarbonUtils.isRunningOnLocalTransportMode()) {
                        stub = new FileDownloadServiceStub(configCtxService.getServerConfigContext(), serviceEPR);
                    } else {
                        stub = new FileDownloadServiceStub(configCtxService.getClientConfigContext(), serviceEPR);
                    }
                    DataHandler dataHandler = stub.downloadFile(fileID);
                    if (dataHandler != null) {
                        response.setHeader("Content-Disposition", "filename=" + fileID);
                        response.setContentType(dataHandler.getContentType());
                        InputStream in = dataHandler.getDataSource().getInputStream();
                        int nextChar;
    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.