Examples of downloadResource()


Examples of org.openbel.framework.core.protocol.handler.ProtocolHandler.downloadResource()

            final String url = downloadLocation;
            final String msg = "No case for " + supportedProtocol;
            throw new ResourceDownloadError(url, msg);
        }

        return protocolHandler.downloadResource(resourceLocation,
                downloadLocation);
    }
}
View Full Code Here

Examples of org.openbel.framework.core.protocol.handler.SftpProtocolHandler.downloadResource()

     */
    @Test
    public void testUsernamePasswordSecureFtpFilePath() {
        try {
            SftpProtocolHandler sftp = new SftpProtocolHandler();
            File downloadedNamespace = sftp.downloadResource(
                    "sftp://sftptest:sftptest@localhost:" + port
                            + localTestFile.getAbsolutePath(), "test.belns");
            tempFiles.add(downloadedNamespace);
            testFile(downloadedNamespace);
        } catch (Exception e) {
View Full Code Here

Examples of org.openbel.framework.core.protocol.handler.SftpProtocolHandler.downloadResource()

    @Test
    public void testUsernameOnlySecureFtpFilePath() {
        try {
            SftpProtocolHandler sftp = new SftpProtocolHandler();
            sftp.setUserInfo(new TestUserInfo());
            File downloadedNamespace = sftp.downloadResource(
                    "sftp://sftptest@localhost:" + port
                            + localTestFile.getAbsolutePath(), "test.belns");
            tempFiles.add(downloadedNamespace);
            testFile(downloadedNamespace);
        } catch (Exception 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.