|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.di.fc.filetransferfc.FTPConnection
public class FTPConnection
This class encapsulates the FTPClient APIs Connection related objects
| Field Summary | |
|---|---|
static String |
TYPE
The connection protocol being used |
| Constructor Summary | |
|---|---|
FTPConnection()
|
|
| Method Summary | |
|---|---|
FTPClient |
beginSession()
Begin a session with the target machine |
void |
createDir(String dir)
Create a directory on the target machine |
void |
endSession()
End the session with the target machine |
FTPClient |
getFTPProtocol()
Return the FTP Connection Object |
String |
getType()
Return this connection type |
void |
initializeProps(Properties p)
Initialize the properties of the connection |
boolean |
isExists(String source)
Transfers the specified file to target location |
ArrayList<String> |
list(String path)
Retrieves the list of files |
void |
receiveFile(String source,
String target)
Receive the specified file from target location to local machine |
void |
transferFile(String source,
String target)
Transfers the specified file to target location |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String TYPE
| Constructor Detail |
|---|
public FTPConnection()
| Method Detail |
|---|
public void initializeProps(Properties p)
throws Exception
p - Properties object containing the configurable connection
attributes
Exception
public FTPClient beginSession()
throws Exception
Exceptionpublic String getType()
public void endSession()
public void transferFile(String source,
String target)
throws Exception
source - Path to the source filetarget - Path to where the file is to be stored on the target
Exception
public void receiveFile(String source,
String target)
throws Exception
source - Path of the source filetarget - Path to where the file is to be stored on the local machine
Exception
public boolean isExists(String source)
throws Exception
source - Path to the file
Exception
public void createDir(String dir)
throws Exception
dir - Path of the folder to be created
Exception - if the folder cannot be successfully created on the target
public ArrayList<String> list(String path)
throws Exception
path - path on the remote machine
Exceptionpublic FTPClient getFTPProtocol()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||