|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

public interface FTPPutClient
Interface that defines a generic FTP client to store files on a remote server.
| Method Summary | |
|---|---|
void |
destroy()
Destroy this client. |
java.lang.String |
getName()
Return the name of this client. |
void |
init(java.lang.String name,
java.util.Map props,
FTPManager manager)
Initialise this client with a reference to the manager that created it. |
void |
putLocalFile(java.lang.String localFileName,
java.lang.String remoteFileName)
Store a single file from the configured local directory and place the file in the configured remote directory. |
void |
putLocalFiles()
Store all the files from the configured local directory and place them in the configured remote directory. |
void |
putLocalFiles(int fileCount)
Store n number of files from the configured local directory and place them in the configured remote directory. |
| Method Detail |
|---|
void init(java.lang.String name,
java.util.Map props,
FTPManager manager)
name - String containing the name of this client.props - Map instance containing the client configuration
properties.manager - FTPManager instance that created this client.java.lang.String getName()
void putLocalFile(java.lang.String localFileName,
java.lang.String remoteFileName)
throws FTPException
localFileName - String containing the name of the local file.remoteFileName - String containing the name of the remote file.
FTPException - if the file cannot be stored.
void putLocalFiles()
throws FTPException
FTPException - if the files cannot be retrieved.
void putLocalFiles(int fileCount)
throws FTPException
fileCount - int indicating the maximum number of files to store.
Pass -1 to store all files.
FTPException - if the files cannot be retrieved.void destroy()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||