public class FtpSetting extends Object
Ftp
Modifier and Type | Field and Description |
---|---|
private boolean |
activesocketmode |
private char |
filetransfermode |
static int |
LIST
ListCommandMode option, gives detailed information on
file but might not work well on other than implemented
server systems.
|
private int |
listcommandmode |
static int |
NAME_LIST
ListCommandMode option, lists only filenames using
FTP NLST command.
|
static int |
NAME_LIST_LS_F
ListCommandMode option, similar to NAME_LIST except
directories, executables and special files are recognized.
|
static int |
NAME_LIST_LS_LA
ListCommandMode option, gives detailed information on file.
|
static int |
NAME_LIST_LS_P
ListCommandMode option, similar to NAME_LIST
except directories are recognized.
|
private boolean |
securesocketmode |
private int |
serversystemmode |
(package private) static int |
UNIX |
(package private) static int |
WIN |
Constructor and Description |
---|
FtpSetting() |
Modifier and Type | Method and Description |
---|---|
boolean |
getActiveSocketMode()
Get active socket mode.
|
char |
getFileTransferMode()
Gets transfer mode.
|
int |
getListCommandMode()
Gets type of list command used.
|
(package private) boolean |
getSecureSocketMode() |
(package private) int |
getServerSystemMode() |
void |
setActiveSocketMode(boolean activesocketmode)
Sets active socket mode.
|
void |
setFileTransferMode(char filetransfermode)
Sets transfer mode.
|
void |
setListCommandMode(int listcommandmode)
Sets type of list command used.
|
(package private) void |
setSecureSocketMode(boolean securesocketmode) |
(package private) void |
setServerSystemMode(int serversystemmode) |
static final int UNIX
static final int WIN
public static final int LIST
Traditional UNIX system:
% ll
-rw-r--r-- 1 owner group 239 Nov 9 1998 file
drw-r--r-- 1 owner group 58 Nov 12 13:51 dir
MS Windows system:
C:\> dir
10-16-01 11:35PM 1479 file
10-16-01 11:37PM
public static final int NAME_LIST
Warning! Directories are recognized by not containing a dot (.) letter and might not correspond to real directories.
public static final int NAME_LIST_LS_P
Might not work well on other than UNIX server systems.
% ls -p
public static final int NAME_LIST_LS_F
Might not work well on other than UNIX server systems.
% ls -F
public static final int NAME_LIST_LS_LA
Might not work well on other than UNIX server systems.
% ls -la
-rw-r--r-- 1 owner group 239 Nov 9 1998 file
drw-r--r-- 1 owner group 58 Nov 12 13:51 folder
private int serversystemmode
private int listcommandmode
private char filetransfermode
private boolean activesocketmode
private boolean securesocketmode
public FtpSetting()
void setServerSystemMode(int serversystemmode)
int getServerSystemMode()
public void setListCommandMode(int listcommandmode)
listcommandmode
- must be one of following optional values;LIST
,
NAME_LIST
,
NAME_LIST_LS_P
,
NAME_LIST_LS_F
,
NAME_LIST_LS_LA
public int getListCommandMode()
LIST
,
NAME_LIST
,
NAME_LIST_LS_P
,
NAME_LIST_LS_F
,
NAME_LIST_LS_LA
public void setFileTransferMode(char filetransfermode)
filetransfermode
- must be one of following optional values;
'A'=ASCII, 'I'=BINARY files, 'S'=Smart;
smart mode evaluates transfer mode by current TextFilter settingspublic char getFileTransferMode()
public boolean getActiveSocketMode()
public void setActiveSocketMode(boolean activesocketmode)
activesocketmode
- true stands for active socket /
false for pasive socketboolean getSecureSocketMode()
void setSecureSocketMode(boolean securesocketmode)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses