Package org.apache.ftpserver

Examples of org.apache.ftpserver.FtpServerFactory.createServer()


    ListenerFactory factory = new ListenerFactory();
    factory.setPort(ftpPort);
    serverFactory.addListener("default", factory.createListener());

    server = serverFactory.createServer();
    server.start();
  }


  @PreDestroy
View Full Code Here


      factory.setPort(port);
      serverFactory.addListener("default", factory.createListener());

      logger.log(Level.INFO, "Starting FTP server on port {0}", new Object[] { String.valueOf(port) });

      server = serverFactory.createServer();
      server.start();

      this.isRunning = true;

    } catch (FtpException ex) {
View Full Code Here

        Map<String, Ftplet> ftplets = callbacks.getFtpLets();
        LOGGER.info("FTPLet callbacks: " + ftplets);
        serverFactory.setFtplets(ftplets);

        // start the server
        ftp = serverFactory.createServer();
    }

    public void startServer() throws FtpException {
        if (!config.isEnabled()) {
            return;
View Full Code Here

        Map<String, Ftplet> ftplets = callbacks.getFtpLets();
        LOGGER.info("FTPLet callbacks: " + ftplets);
        serverFactory.setFtplets(ftplets);

        // start the server
        ftp = serverFactory.createServer();
    }

    public void startServer() throws FtpException {
        if (!config.isEnabled()) {
            return;
View Full Code Here

        NativeFileSystemFactory fileSystemFactory = new NativeFileSystemFactory();
        fileSystemFactory.setCreateHome(true);
        serverFactory.setFileSystem(fileSystemFactory);

        ftpServer = serverFactory.createServer();
        ftpServer.start();
    }

    @AfterClass
    public static void shutDown() {
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.