44 lines
1 KiB
Java
44 lines
1 KiB
Java
package handleSsh;
|
|
|
|
public class Server {
|
|
private String host;
|
|
private String username;
|
|
private String password;
|
|
private String path;
|
|
private int port;
|
|
|
|
public Server(String host, String username, String password, String path, int port) {
|
|
this.host = host;
|
|
this.username = username;
|
|
this.password = password;
|
|
this.path = path;
|
|
this.port = port;
|
|
}
|
|
|
|
public String getHost() {
|
|
return host;
|
|
}
|
|
public String getUsername() {
|
|
return username;
|
|
}
|
|
public String getPassword() {
|
|
return password;
|
|
}
|
|
public String getPath() {
|
|
return path;
|
|
}
|
|
public int getPort() {
|
|
return port;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "Server{" +
|
|
"host='" + host + '\'' +
|
|
", username='" + username + '\'' +
|
|
", password='" + password + '\'' +
|
|
", path='" + path + '\'' +
|
|
", port=" + port +
|
|
'}';
|
|
}
|
|
}
|