|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FileTransferClient
An interface for various File Transfer Clients to implement
| Method Summary | |
|---|---|
void |
cd(java.lang.String targetPath)
Method to change directory |
void |
deleteRemoteDirectory(java.lang.String directoryPath,
boolean recurse)
Method to delete a remote directory |
void |
deleteRemoteFile(java.lang.String filename)
Method to delete a remote file |
void |
disconnect()
TODO add comment |
BaseFileTransferMappedRecord |
get(ClientListEntry clientListEntry)
Gets a BaseFileTransferMappedRecord (a 'File') given a ClientListEntry |
BaseFileTransferMappedRecord |
get(java.lang.String filePath)
Gets a BaseFileTransferMappedRecord (a 'File') given a filePath |
void |
get(java.lang.String filePath,
java.io.OutputStream outputStream)
Get a file as a OutputStream |
void |
get(java.lang.String filePath,
java.io.OutputStream outputStream,
int resume,
long offset)
Get a file as an OutputStream given an offset and a resume flag |
java.io.InputStream |
getAsInputStream(java.lang.String filePath)
Utilises the underlying API to return an InputStream as the result of the GET operation |
java.io.InputStream |
getContentAsStream(ClientListEntry entry)
Get the content of a ClientListFileEntry (a 'File') as an InputStream |
java.util.List<ClientListEntry> |
ls(java.lang.String path)
Method to return a list of the contents of a directory |
void |
put(java.lang.String name,
byte[] content)
Method to put a content on to a File Tansfer system |
void |
putWithOutputStream(java.lang.String fileName,
java.io.InputStream inputstream)
Method to put the file using an OutputStream |
java.lang.String |
pwd()
Method to list what directory you are currently in |
void |
rename(java.lang.String currentPath,
java.lang.String newPath)
Method to rename a path (a 'File') |
| Methods inherited from interface org.ikasan.connector.base.command.TransactionalResource |
|---|
ensureConnection |
| Method Detail |
|---|
void cd(java.lang.String targetPath)
throws ClientCommandCdException
targetPath -
ClientCommandCdException
void deleteRemoteDirectory(java.lang.String directoryPath,
boolean recurse)
throws ClientException,
ClientCommandLsException
directoryPath - recurse - (whether to delete recursively or not)
ClientException
ClientCommandLsException
void deleteRemoteFile(java.lang.String filename)
throws ClientException
filename -
ClientException
BaseFileTransferMappedRecord get(ClientListEntry clientListEntry)
throws ClientCommandGetException
clientListEntry -
ClientCommandGetException
BaseFileTransferMappedRecord get(java.lang.String filePath)
throws ClientCommandGetException
filePath -
ClientCommandGetException
void get(java.lang.String filePath,
java.io.OutputStream outputStream)
throws ClientCommandGetException
filePath - outputStream -
ClientCommandGetException
void get(java.lang.String filePath,
java.io.OutputStream outputStream,
int resume,
long offset)
throws ClientCommandGetException
filePath - outputStream - resume - offset -
ClientCommandGetException
java.io.InputStream getAsInputStream(java.lang.String filePath)
throws ClientCommandGetException
filePath -
ClientCommandGetException
java.io.InputStream getContentAsStream(ClientListEntry entry)
throws ClientCommandGetException
entry -
ClientCommandGetException
java.util.List<ClientListEntry> ls(java.lang.String path)
throws ClientCommandLsException,
java.net.URISyntaxException
path -
ClientCommandLsException
java.net.URISyntaxException
void put(java.lang.String name,
byte[] content)
throws ClientCommandPutException
name - (of the 'File')content - (of the 'File')
ClientCommandPutException
void putWithOutputStream(java.lang.String fileName,
java.io.InputStream inputstream)
throws ClientCommandPutException,
ClientCommandLsException,
ClientCommandMkdirException
fileName - inputstream -
ClientCommandPutException
ClientCommandLsException
ClientCommandMkdirException
java.lang.String pwd()
throws ClientCommandPwdException
ClientCommandPwdException
void rename(java.lang.String currentPath,
java.lang.String newPath)
throws ClientCommandRenameException
currentPath - newPath -
ClientCommandRenameExceptionvoid disconnect()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||