All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.gun88.fitnesse.fixture.ssh.session.SessionFactory Maven / Gradle / Ivy

package com.github.gun88.fitnesse.fixture.ssh.session;

public class SessionFactory {
    public static SshSession get(String sessionClassName, String host) throws ClassNotFoundException, IllegalAccessException, InstantiationException {
        if (sessionClassName != null)
            return (SshSession) Class.forName(sessionClassName).newInstance();
        if (host != null && host.startsWith("ssh-fitnesse.dev"))
            return new DummySession();
        return new JSchSession();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy