org.apache.ftpserver.main
Class CommandLine

java.lang.Object
  extended by org.apache.ftpserver.main.CommandLine
Direct Known Subclasses:
AddUser

public class CommandLine
extends java.lang.Object

This class is the starting point for the FtpServer when it is started using the command line mode.

Version:
$Rev$, $Date$
Author:
The Apache MINA Project (dev@mina.apache.org)

Constructor Summary
protected CommandLine()
          The purpose of this class is to allow the final user to start the FtpServer application.
 
Method Summary
protected  FtpServer getConfiguration(java.lang.String[] args)
          Get the configuration object.
static void main(java.lang.String[] args)
          This method is the FtpServer starting point when running by using the command line mode.
protected  void usage()
          Print the usage message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandLine

protected CommandLine()
The purpose of this class is to allow the final user to start the FtpServer application. Because of that it has only static methods and cannot be instanced.

Method Detail

main

public static void main(java.lang.String[] args)
This method is the FtpServer starting point when running by using the command line mode.

Parameters:
args - The first element of this array must specify the kind of configuration to be used to start the server.

usage

protected void usage()
Print the usage message.


getConfiguration

protected FtpServer getConfiguration(java.lang.String[] args)
                              throws java.lang.Exception
Get the configuration object.

Throws:
java.lang.Exception


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.