定义webssh接口

This commit is contained in:
guange 2017-07-02 14:21:08 +08:00
parent 0a95110706
commit e2b4f8a1d4
3 changed files with 70 additions and 0 deletions

View File

@ -0,0 +1,43 @@
package com.educoder.jenkins.model;
/**
* Created by guange on 02/07/2017.
*/
public class Webssh {
private int port;
private String address;
private String username;
private String password;
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public int getPort() {
return port;
}
public void setPort(int port) {
this.port = port;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
}

View File

@ -0,0 +1,11 @@
package com.educoder.jenkins.service;
import com.educoder.jenkins.model.Webssh;
import org.springframework.stereotype.Service;
/**
* Created by guange on 02/07/2017.
*/
public interface WebsshService {
Webssh create();
}

View File

@ -0,0 +1,16 @@
package com.educoder.jenkins.service;
import com.educoder.jenkins.model.Webssh;
import org.springframework.stereotype.Service;
/**
* Created by guange on 02/07/2017.
*/
@Service
public class WebsshServiceImpl implements WebsshService {
@Override
public Webssh create() {
return new Webssh();
}
}