diff options
Diffstat (limited to 'src/YalpServer/InitServer.java')
| -rwxr-xr-x | src/YalpServer/InitServer.java | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/src/YalpServer/InitServer.java b/src/YalpServer/InitServer.java index ac9d507..a5f7c99 100755 --- a/src/YalpServer/InitServer.java +++ b/src/YalpServer/InitServer.java @@ -12,7 +12,6 @@ package YalpServer; import java.net.Inet4Address; -import java.net.MalformedURLException; import java.net.UnknownHostException; import java.beans.XMLDecoder; @@ -29,8 +28,6 @@ import java.util.Properties; import java.security.*; -import java.sql.SQLException; - import org.omg.CosNaming.*; import org.omg.CosNaming.NamingContextPackage.*; import org.omg.CORBA.*; @@ -62,7 +59,6 @@ public class InitServer { private String[] orbArgs; private POA poa; private String serverIP; - private ArrayList<FileBrowser> browseList; /* * Constructor: starts Server initialization @@ -72,8 +68,6 @@ public class InitServer { loadConfig("ServerSettings.xml"); writeConfig("ServerSettings.xml"); - this.browseList = new ArrayList<FileBrowser>(); - this.orbArgs = _orbArgs; // t.b.d. read orbargs from config xml try { @@ -211,73 +205,4 @@ public class InitServer { this.settings = set; return this.writeConfig("ServerConfiguration.xml"); } - -/* - * t.b.d. session management - * - * Client logon (give him,his fileBrowser) - * - * @param ipAdress - * of the Client - * @param userName - * using the Client - * - - public void newClient(String ipAdress,String userName) { - this.browseList.add( new FileBrowser( this.settings.startDir, - ipAdress, - userName ) ); - } - */ - -/* - * Client logoff (free memory of his fileBrowser - * - * @param ipAdress - * of the Client - * @param userName - * using the Client - */ - - public void remClient(String ipAdress, String userName) { - for( FileBrowser aBrowser : this.browseList ) { - if( aBrowser.getOwner().equals(ipAdress) && - aBrowser.getUserName().equals(userName) ) { - this.browseList.remove(aBrowser); - break; - } - } - } - -/* - * change Directory in fileBrowser - * - * @param ip - * of the Client - * @param dir - * to which should be changed - * @return ArrayList<YalpFile> - * content of the directory changed to - */ - - public ArrayList<YalpFile> changeDir(String ip, String dir) { - FileBrowser aBrowser = null; - for(FileBrowser oneMoreBrowser : this.browseList) { - if( oneMoreBrowser.getOwner().equals(ip) ) { - oneMoreBrowser.changeDir(dir); - aBrowser = oneMoreBrowser; - break; - } - } - return aBrowser.getFiles(); - } - -/* - * Server Shutdown - */ - - public void serverShutdown() { - System.out.println("Server shutdown - Server is going down"); - System.exit(0); - } } |
