|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.glub.secureftp.bean.FTPServerInfo
public class FTPServerInfo
The FTPServerInfo class is responsible for determining the
type of FTP server the user is currently connected to.
| Field Summary | |
|---|---|
static short |
LIST_STYLE_NETWARE
Used to set the FTP server type to Netware. |
static short |
LIST_STYLE_UNIX
Used to set the FTP server type to UNIX. |
static short |
LIST_STYLE_UNKNOWN
Used to set the FTP server type to unknown. |
static short |
LIST_STYLE_WINDOWS
Used to set the FTP server type to Windows. |
| Constructor Summary | |
|---|---|
FTPServerInfo()
|
|
| Method Summary | |
|---|---|
static short |
lookupListStyleByBanner(String banner)
Try to determine what type of FTP server the user is connected to based on the login banner. |
static short |
lookupListStyleBySyst(String syst)
Try to determine what type of FTP server the user is connected to based on the response from the SYST command. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final short LIST_STYLE_UNKNOWN
unknown.
public static final short LIST_STYLE_UNIX
UNIX.
public static final short LIST_STYLE_WINDOWS
Windows.
public static final short LIST_STYLE_NETWARE
Netware.
| Constructor Detail |
|---|
public FTPServerInfo()
| Method Detail |
|---|
public static short lookupListStyleByBanner(String banner)
banner - the banner sent from the FTP server.
LIST_STYLE_UNKNOWN,
LIST_STYLE_UNIX,
LIST_STYLE_WINDOWS,
LIST_STYLE_NETWAREpublic static short lookupListStyleBySyst(String syst)
SYST command.
syst - the SYST response from the FTP server.
FTPCommand.syst(),
LIST_STYLE_UNKNOWN,
LIST_STYLE_UNIX,
LIST_STYLE_WINDOWS,
LIST_STYLE_NETWARE
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||