|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.vfs.FileSystemConfigBuilder
org.apache.commons.vfs.provider.ftp.FtpFileSystemConfigBuilder
The config builder for various ftp configuration options
Method Summary | |
protected Class |
getConfigClass()
|
String |
getEntryParser(FileSystemOptions opts)
|
org.apache.commons.net.ftp.parser.FTPFileEntryParserFactory |
getEntryParserFactory(FileSystemOptions opts)
|
static FtpFileSystemConfigBuilder |
getInstance()
|
Boolean |
getPassiveMode(FileSystemOptions opts)
|
Boolean |
getUserDirIsRoot(FileSystemOptions opts)
|
void |
setEntryParser(FileSystemOptions opts,
String key)
set the FQCN of your FileEntryParser used to parse the directory listing from your server. If you do not use the default commons-net FTPFileEntryParserFactory e.g. |
void |
setEntryParserFactory(FileSystemOptions opts,
org.apache.commons.net.ftp.parser.FTPFileEntryParserFactory factory)
FTPFileEntryParserFactory which will be used for ftp-entry parsing |
void |
setPassiveMode(FileSystemOptions opts,
boolean passiveMode)
enter into passive mode |
void |
setUserDirIsRoot(FileSystemOptions opts,
boolean userDirIsRoot)
use user directory as root (do not change to fs root) |
Methods inherited from class org.apache.commons.vfs.FileSystemConfigBuilder |
getParam, hasParam, setParam |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static FtpFileSystemConfigBuilder getInstance()
public void setEntryParserFactory(FileSystemOptions opts, org.apache.commons.net.ftp.parser.FTPFileEntryParserFactory factory)
opts
- factory
- instance of your factorypublic org.apache.commons.net.ftp.parser.FTPFileEntryParserFactory getEntryParserFactory(FileSystemOptions opts)
opts
-
setEntryParserFactory(org.apache.commons.vfs.FileSystemOptions, org.apache.commons.net.ftp.parser.FTPFileEntryParserFactory)
public void setEntryParser(FileSystemOptions opts, String key)
setEntryParserFactory(org.apache.commons.vfs.FileSystemOptions, org.apache.commons.net.ftp.parser.FTPFileEntryParserFactory)
this is the "key" parameter passed as argument into your custom factory
opts
- key
- public String getEntryParser(FileSystemOptions opts)
opts
-
setEntryParser(org.apache.commons.vfs.FileSystemOptions, java.lang.String)
protected Class getConfigClass()
getConfigClass
in class FileSystemConfigBuilder
public void setPassiveMode(FileSystemOptions opts, boolean passiveMode)
opts
- passiveMode
- public Boolean getPassiveMode(FileSystemOptions opts)
opts
-
setPassiveMode(org.apache.commons.vfs.FileSystemOptions, boolean)
public void setUserDirIsRoot(FileSystemOptions opts, boolean userDirIsRoot)
opts
- userDirIsRoot
- public Boolean getUserDirIsRoot(FileSystemOptions opts)
opts
-
setUserDirIsRoot(org.apache.commons.vfs.FileSystemOptions, boolean)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |