com.glub.secureftp.bean
Class FTPServerInfo

java.lang.Object
  extended by com.glub.secureftp.bean.FTPServerInfo

public class FTPServerInfo
extends Object

The FTPServerInfo class is responsible for determining the type of FTP server the user is currently connected to.

Since:
2.5.11
Version:
$Revision: 47 $, $Date: 2009-12-15 19:53:52 -0800 (Tue, 15 Dec 2009) $

Field Summary
static short LIST_STYLE_ENGIN
          Used to set the FTP server type to Engin.
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

LIST_STYLE_UNKNOWN

public static final short LIST_STYLE_UNKNOWN
Used to set the FTP server type to unknown.

See Also:
Constant Field Values

LIST_STYLE_UNIX

public static final short LIST_STYLE_UNIX
Used to set the FTP server type to UNIX.

See Also:
Constant Field Values

LIST_STYLE_WINDOWS

public static final short LIST_STYLE_WINDOWS
Used to set the FTP server type to Windows.

See Also:
Constant Field Values

LIST_STYLE_NETWARE

public static final short LIST_STYLE_NETWARE
Used to set the FTP server type to Netware.

See Also:
Constant Field Values

LIST_STYLE_ENGIN

public static final short LIST_STYLE_ENGIN
Used to set the FTP server type to Engin.

See Also:
Constant Field Values
Constructor Detail

FTPServerInfo

public FTPServerInfo()
Method Detail

lookupListStyleByBanner

public static short lookupListStyleByBanner(String banner)
Try to determine what type of FTP server the user is connected to based on the login banner.

Parameters:
banner - the banner sent from the FTP server.
Returns:
the code that specifies the server type.
See Also:
LIST_STYLE_UNKNOWN, LIST_STYLE_UNIX, LIST_STYLE_WINDOWS, LIST_STYLE_NETWARE

lookupListStyleBySyst

public 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.

Parameters:
syst - the SYST response from the FTP server.
Returns:
the code that specifies the server type.
See Also:
FTPCommand.syst(), LIST_STYLE_UNKNOWN, LIST_STYLE_UNIX, LIST_STYLE_WINDOWS, LIST_STYLE_NETWARE


Copyright © 2000-08 Glub Tech, Inc. All Rights Reserved.