org.apache.ftpserver
Class FtpStatus
java.lang.Object
java.util.Dictionary<K,V>
java.util.Hashtable<Object,Object>
java.util.Properties
org.apache.ftpserver.FtpStatus
- All Implemented Interfaces:
- Serializable, Cloneable, Map<Object,Object>
public class FtpStatus
- extends 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
Constructor Summary |
FtpStatus()
Load status propeties file from the classpath. |
Methods inherited from class java.util.Properties |
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames |
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 |
FtpStatus
public FtpStatus()
throws IOException
- Load status propeties file from the classpath.
- Throws:
IOException
processNewLine
public String processNewLine(String msg,
int status)
- Process ftp response new line character.
getResponse
public String getResponse(int status,
FtpRequest cmd,
FtpUser user,
String[] args)
- Get ftp response.
- Parameters:
status
- ftp status code.cmd
- ftp request object (may be null).ars
- variable arguent list (may be null).
Copyright © 2001-2012 Codehaus. All Rights Reserved.