Package org.apache.ftpserver

Examples of org.apache.ftpserver.ConfigurableFtpServerContext


        // get the configuration object
        Properties properties = createFtpServerProperties();
        Configuration config = new PropertiesConfiguration(properties);

        // create servce context
        FtpServerContext ftpConfig = new ConfigurableFtpServerContext(config);

        // create the server object and start it
        return new FtpServer(ftpConfig);
    }
View Full Code Here


  public void start() throws EmbeddableException
  {
    try
    {
      Configuration configuration = new PropertiesConfiguration( ftpProperties );
      FtpServerContext context = new ConfigurableFtpServerContext( configuration );
      server = new FtpServer( context );
      server.start();
    }
    catch (IOException e)
    {
View Full Code Here

      config.setProperty("config.user-manager.prop-file", path + "res/user.gen");
      log.info("prop-file path: " + path + "res/user.gen");
      config.setProperty("config.user-manager.encrypt-passwords", config.getString("config.user-manager.encrypt-passwords", "true"));
      config.setProperty("config.user-manager.base-path", path);

      FtpServerContext ftpConfig = new ConfigurableFtpServerContext(config);
      server = new FtpServer(ftpConfig);
      server.start();
      super.startService();
   }
View Full Code Here

        // get the configuration object
        Properties properties = createFtpServerProperties();
        Configuration config = new PropertiesConfiguration(properties);

        // create service context
        FtpServerContext ftpConfig = new ConfigurableFtpServerContext(config);

        // create the server object and start it
        return new FtpServer(ftpConfig);
    }
View Full Code Here

                    LOG.error("No configuration provided");
                    throw new FtpException("No configuration provided");
                }
   
                // create root configuration object
                FtpServerContext serverContext = new ConfigurableFtpServerContext(config);
   
                // start the server
                server = new FtpServer(serverContext)
            }
           
View Full Code Here

            if(config == null) {
                return;
            }

            // create root configuration object
            FtpServerContext serverContext = new ConfigurableFtpServerContext(config);

            // start the server
            FtpServer server = new FtpServer(serverContext);
            server.start();
View Full Code Here

        // get the configuration object
        Properties properties = createFtpServerProperties();
        Configuration config = new PropertiesConfiguration(properties);

        // create servce context
        FtpServerContext ftpConfig = new ConfigurableFtpServerContext(config);

        // create the server object and start it
        return new FtpServer(ftpConfig);
    }
View Full Code Here

        // get the configuration object
        Properties properties = createFtpServerProperties();
        Configuration config = new PropertiesConfiguration(properties);

        // create service context
        FtpServerContext ftpConfig = new ConfigurableFtpServerContext(config);

        // create the server object and start it
        ftpServer = new FtpServer(ftpConfig);
    }
View Full Code Here

TOP

Related Classes of org.apache.ftpserver.ConfigurableFtpServerContext

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.