|
|||||||||||
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 java.lang.String |
TYPE
The connection protocol being used |
Constructor Summary | |
---|---|
FTPConnection()
|
Method Summary | |
---|---|
FTPClient |
beginSession()
Begin a session with the target machine |
void |
createDir(java.lang.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 |
java.lang.String |
getType()
Return this connection type |
void |
initializeProps(java.util.Properties p)
Initialize the properties of the connection |
boolean |
isExists(java.lang.String source)
Transfers the specified file to target location |
java.util.ArrayList<java.lang.String> |
list(java.lang.String path)
Retrieves the list of files |
void |
receiveFile(java.lang.String source,
java.lang.String target)
Receive the specified file from target location to local machine |
void |
transferFile(java.lang.String source,
java.lang.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 java.lang.String TYPE
Constructor Detail |
---|
public FTPConnection()
Method Detail |
---|
public void initializeProps(java.util.Properties p) throws java.lang.Exception
p
- Properties object containing the configurable connection
attributes
java.lang.Exception
public FTPClient beginSession() throws java.lang.Exception
java.lang.Exception
public java.lang.String getType()
public void endSession()
public void transferFile(java.lang.String source, java.lang.String target) throws java.lang.Exception
source
- Path to the source filetarget
- Path to where the file is to be stored on the target
java.lang.Exception
public void receiveFile(java.lang.String source, java.lang.String target) throws java.lang.Exception
source
- Path of the source filetarget
- Path to where the file is to be stored on the local machine
java.lang.Exception
public boolean isExists(java.lang.String source) throws java.lang.Exception
source
- Path to the file
java.lang.Exception
public void createDir(java.lang.String dir) throws java.lang.Exception
dir
- Path of the folder to be created
java.lang.Exception
- if the folder cannot be successfully created on the targetpublic java.util.ArrayList<java.lang.String> list(java.lang.String path) throws java.lang.Exception
path
- path on the remote machine
java.lang.Exception
public FTPClient getFTPProtocol()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |