Package org.openbel.framework.core.protocol.handler

Examples of org.openbel.framework.core.protocol.handler.FTPProtocolHandler


            break;
        case SFTP:
            protocolHandler = new SftpProtocolHandler();
            break;
        case FTP:
            protocolHandler = new FTPProtocolHandler();
            break;
        default:
            final String url = downloadLocation;
            final String msg = "No case for " + supportedProtocol;
            throw new ResourceDownloadError(url, msg);
View Full Code Here


            Assert.fail(e.getMessage());
        }

        try {
            localDestinationFile =
                    new FTPProtocolHandler().downloadResource(
                            "ftp://ftptest:ftptest@localhost:" + port + "/"
                                    + TEST_FILE_PATH, "test.belns");
            tempFiles.add(localDestinationFile);
            testFile(localDestinationFile);
        } catch (ResourceDownloadError e) {
View Full Code Here

        try {
            ByteArrayInputStream pwdStringInputStream =
                    new ByteArrayInputStream("ftptest".getBytes("US-ASCII"));
            localDestinationFile =
                    new FTPProtocolHandler(pwdStringInputStream)
                            .downloadResource("ftp://ftptest@localhost:" + port
                                    + "/" + TEST_FILE_PATH, "test.belns");
            tempFiles.add(localDestinationFile);
            testFile(localDestinationFile);
        } catch (ResourceDownloadError e) {
View Full Code Here

            Assert.fail(e.getMessage());
        }

        try {
            localDestinationFile =
                    new FTPProtocolHandler().downloadResource(
                            "ftp://localhost:" + port + "/" + TEST_FILE_PATH,
                            "test.belns");
            tempFiles.add(localDestinationFile);
            testFile(localDestinationFile);
        } catch (ResourceDownloadError e) {
View Full Code Here

            e.printStackTrace();
            Assert.fail(e.getMessage());
        }

        localDestinationFile =
                new FTPProtocolHandler().downloadResource("ftp://localhost:"
                        + port + "/" + TEST_FILE_PATH, "test.belns");
        tempFiles.add(localDestinationFile);
        try {
            testFile(localDestinationFile);
        } catch (IOException e) {
View Full Code Here

TOP

Related Classes of org.openbel.framework.core.protocol.handler.FTPProtocolHandler

Copyright © 2018 www.massapicom. 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.