Package org.jboss.soa.esb.util

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


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

                {
                        String name = file.getName();
                        final RemoteFileSystem handler = getHandler() ;
                        try
                        {
                            handler.downloadFile(name, name);
                        }
                        finally
                        {
                            handler.quit() ;
                        }
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.