org.apache.ftpserver
Class FtpStatus

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended byjava.util.Properties
              extended byorg.apache.ftpserver.FtpStatus
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class FtpStatus
extends java.util.Properties

Ftp status line parser class. This class loads FtpStatus.properties file from the classpath. It generates the descriptive ftp status for astatus code. The actual response depends on the status code, the ftp command and the passed argument list.

Author:
Rana Bhattacharyya
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
FtpStatus()
          Load status propeties file from the classpath.
 
Method Summary
 java.lang.String getResponse(int status, FtpRequest cmd, FtpUser user, java.lang.String[] args)
          Get ftp response.
 java.lang.String processNewLine(java.lang.String msg, int status)
          Process ftp response new line character.
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, load, propertyNames, save, setProperty, store
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FtpStatus

public FtpStatus()
          throws java.io.IOException
Load status propeties file from the classpath.

Method Detail

processNewLine

public java.lang.String processNewLine(java.lang.String msg,
                                       int status)
Process ftp response new line character.


getResponse

public java.lang.String getResponse(int status,
                                    FtpRequest cmd,
                                    FtpUser user,
                                    java.lang.String[] args)
Get ftp response.

Parameters:
status - ftp status code.
cmd - ftp request object (may be null).


Copyright © 2001-2007 Codehaus. All Rights Reserved.