Package com.sshtools.daemon
Class SshServer
- java.lang.Object
-
- com.sshtools.daemon.SshServer
-
public abstract class SshServer extends java.lang.Object- Version:
- $Revision: 1.18 $
- Author:
- $author$
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.ListactiveConnections
-
Constructor Summary
Constructors Constructor Description SshServer()Creates a new SshServer object.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidconfigureServices(ConnectionProtocol connection)protected TransportProtocolServercreateSession(java.net.Socket socket)protected voidprocessCommand(int command, java.net.Socket client)protected voidrefuseSession(java.net.Socket socket)protected abstract voidshutdown(java.lang.String msg)protected voidstartCommandSocket()voidstartServer()protected voidstartServerSocket()voidstopServer(java.lang.String msg)
-
-
-
Constructor Detail
-
SshServer
public SshServer() throws java.io.IOExceptionCreates a new SshServer object.- Throws:
java.io.IOExceptionSshException
-
-
Method Detail
-
startServer
public void startServer() throws java.io.IOException- Throws:
java.io.IOException
-
processCommand
protected void processCommand(int command, java.net.Socket client) throws java.io.IOException- Parameters:
command-client-- Throws:
java.io.IOException
-
startCommandSocket
protected void startCommandSocket() throws java.io.IOException- Throws:
java.io.IOException
-
startServerSocket
protected void startServerSocket() throws java.io.IOException- Throws:
java.io.IOException
-
stopServer
public void stopServer(java.lang.String msg) throws java.io.IOException- Parameters:
msg-- Throws:
java.io.IOException
-
shutdown
protected abstract void shutdown(java.lang.String msg)
- Parameters:
msg-
-
configureServices
protected abstract void configureServices(ConnectionProtocol connection) throws java.io.IOException
- Parameters:
connection-- Throws:
java.io.IOException
-
refuseSession
protected void refuseSession(java.net.Socket socket) throws java.io.IOException- Parameters:
socket-- Throws:
java.io.IOException
-
createSession
protected TransportProtocolServer createSession(java.net.Socket socket) throws java.io.IOException
- Parameters:
socket-- Returns:
- Throws:
java.io.IOException
-
-