Examples of SftpProtocolHandler


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

            break;
        case HTTPS:
            protocolHandler = new HttpsProtocolHandler();
            break;
        case SFTP:
            protocolHandler = new SftpProtocolHandler();
            break;
        case FTP:
            protocolHandler = new FTPProtocolHandler();
            break;
        default:
View Full Code Here

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

     * authentication in the url.
     */
    @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

     * for the password using {@link TestUserInfo}.
     */
    @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

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

        /**
         * Creates the test user info.
         */
        public TestUserInfo() {
            new SftpProtocolHandler().super();
        }
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.