定义webssh接口
This commit is contained in:
parent
0a95110706
commit
e2b4f8a1d4
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -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();
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue