public class SSHServer extends java.lang.Object implements ServerService, SelfManaging
Constructor and Description |
---|
SSHServer() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getIP() |
java.lang.String |
getName() |
int |
getPort() |
void |
init(java.util.Properties props) |
void |
service(java.io.InputStream in,
java.io.OutputStream out) |
void |
service(java.net.Socket socket) |
void |
setBind(java.lang.String bind) |
void |
setDomain(java.lang.String domain) |
void |
setPort(int port) |
void |
start() |
void |
stop() |
public void start() throws ServiceException
start
in interface ServerService
ServiceException
public void stop() throws ServiceException
stop
in interface ServerService
ServiceException
public void service(java.io.InputStream in, java.io.OutputStream out) throws ServiceException, java.io.IOException
service
in interface ServerService
ServiceException
java.io.IOException
public void service(java.net.Socket socket) throws ServiceException, java.io.IOException
service
in interface ServerService
ServiceException
java.io.IOException
public java.lang.String getName()
getName
in interface ServerService
public java.lang.String getIP()
getIP
in interface ServerService
public int getPort()
getPort
in interface ServerService
public void init(java.util.Properties props) throws java.lang.Exception
public void setPort(int port)
public void setDomain(java.lang.String domain)
public void setBind(java.lang.String bind)