Package org.quickserver.util.xmlreader

Examples of org.quickserver.util.xmlreader.ApplicationConfiguration


      handler.getServer().getStoreObjects()[0];

    if(command.toLowerCase().startsWith("set ftproot ")) {
      String temp = "";
      temp = command.substring("set ftproot ".length());
      ApplicationConfiguration appConfig = ftpqs.getConfig().getApplicationConfiguration();
      File root = new File(temp);
      if(root.canRead() && root.isDirectory()) {
        if(appConfig==null)
          appConfig = new ApplicationConfiguration();
        appConfig.put("FTP_ROOT", temp);
        ftpqs.getConfig().setApplicationConfiguration(appConfig);
        handler.sendClientMsg("+OK root changed");
      } else {
        handler.sendClientMsg("-ERR not a directory or can't read : "+temp);
      }
      return true;
    } else if(command.toLowerCase().equals("get ftproot")) {
      HashMap appConfig = ftpqs.getConfig().getApplicationConfiguration();
      String temp = null;
      if(appConfig!=null)
        temp = (String)appConfig.get("FTP_ROOT");
      else
        temp = System.getProperty("user.home");
      handler.sendClientMsg("+OK " + temp);
      return true;
    } else if(command.toLowerCase().equals("help")) {
View Full Code Here

TOP

Related Classes of org.quickserver.util.xmlreader.ApplicationConfiguration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.