Examples of FtpServerContext


Examples of org.apache.ftpserver.interfaces.FtpServerContext

        // 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

Examples of org.apache.ftpserver.interfaces.FtpServerContext

  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

Examples of org.apache.ftpserver.interfaces.FtpServerContext

      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

Examples of org.apache.ftpserver.interfaces.FtpServerContext

        // 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

Examples of org.apache.ftpserver.interfaces.FtpServerContext

            }
            catch(Exception ex) {
                LOG.warn("FtpDataConnection.closeDataSocket()", ex);
            }
           
            FtpServerContext ctx = serverContext;
           
            if(ctx != null) {
                DataConnectionConfiguration dcc = session.getListener().getDataConnectionConfiguration();
                if(dcc != null) {
                    dcc.releasePassivePort(port);
View Full Code Here

Examples of org.apache.ftpserver.interfaces.FtpServerContext

                    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

Examples of org.apache.ftpserver.interfaces.FtpServerContext

            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

Examples of org.apache.ftpserver.interfaces.FtpServerContext

        // 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

Examples of org.apache.ftpserver.interfaces.FtpServerContext

        // 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

Examples of org.apache.ftpserver.interfaces.FtpServerContext

                servSoc.close();
            } catch (Exception ex) {
                LOG.warn("FtpDataConnection.closeDataSocket()", ex);
            }

            FtpServerContext ctx = serverContext;

            if (ctx != null) {
                DataConnectionConfiguration dcc = session.getListener()
                        .getDataConnectionConfiguration();
                if (dcc != null) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.