com.Prominic.jFTPd
Class FTPd

java.lang.Object
  extended by com.Prominic.jFTPd.FTPd

public class FTPd
extends java.lang.Object

Main class, which starts up the application.


Field Summary
private static AdminConnection adminConnection
           
private static java.lang.String copyright
           
private static java.lang.String CRLF
           
private static FTPHandler handler
           
private static java.lang.String version
           
private static java.lang.String welcome
           
 
Constructor Summary
FTPd()
           
 
Method Summary
static void displayCopyright()
          Displays the copyright (including server version) on STDOUT.
static FTPHandler getFTPHandler()
          Returns the FTPHandler (connection handler) of the server.
static java.lang.String getStatistics()
          Returns a String which contains a couple of statistics from the server (such as uptime, and number of files uploaded/downloaded, and number of bytes uploaded/downloaded).
static java.lang.String getVersion()
          Returns a string containing the version of the server.
static FTPHandler installHandler(java.lang.String[] args)
          Installs the FTP handler - which will process the command line arguments, disply the copyright, read the configuration file and spawn FTP connections.
static void main(java.lang.String[] args)
          Starts the server by installing an FTPhandler, which will receive the command line arguments.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

private static java.lang.String copyright

version

private static java.lang.String version

welcome

private static java.lang.String welcome

CRLF

private static java.lang.String CRLF

adminConnection

private static AdminConnection adminConnection

handler

private static FTPHandler handler
Constructor Detail

FTPd

public FTPd()
Method Detail

displayCopyright

public static void displayCopyright()
Displays the copyright (including server version) on STDOUT. Creation date: (06-Aug-02 19:03:18)


getFTPHandler

public static FTPHandler getFTPHandler()
Returns the FTPHandler (connection handler) of the server.

Returns:
- connection handler of the server.

getStatistics

public static java.lang.String getStatistics()
Returns a String which contains a couple of statistics from the server (such as uptime, and number of files uploaded/downloaded, and number of bytes uploaded/downloaded). Creation date: (2/26/2004 4:27:41 PM)

Returns:
java.lang.String - statistic strings (one line).

getVersion

public static java.lang.String getVersion()
Returns a string containing the version of the server.

Returns:
- version

installHandler

public static FTPHandler installHandler(java.lang.String[] args)
Installs the FTP handler - which will process the command line arguments, disply the copyright, read the configuration file and spawn FTP connections.

Parameters:
args[] - - command line arguments. Creation date: (07-Aug-02 16:30:08)

main

public static void main(java.lang.String[] args)
Starts the server by installing an FTPhandler, which will receive the command line arguments.

Parameters:
args - - command line arguments.