Examples of FTPProtocolHandler


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

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

            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

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

        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

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

            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

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

            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
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.