public interface RemoteFileOperations<F>
| Modifier and Type | Method and Description |
|---|---|
<T> T |
execute(SessionCallback<F,T> callback)
Execute the callback's doInSession method after obtaining a session.
|
boolean |
get(Message<?> message,
InputStreamCallback callback)
Retrieve a remote file as an InputStream, based on information in a message.
|
boolean |
remove(String path)
Remove a remote file.
|
void |
rename(String fromPath,
String toPath)
Rename a remote file, creating directories if needed.
|
String |
send(Message<?> message)
Send a file to a remote server, based on information in a message.
|
String |
send(Message<?> message,
String subDirectory)
Send a file to a remote server, based on information in a message.
|
String send(Message<?> message)
message - The message.ExceptionString send(Message<?> message, String subDirectory)
message - The message.subDirectory - The sub directory.Exceptionboolean get(Message<?> message, InputStreamCallback callback)
callback - the callback.boolean remove(String path)
path - The full path to the file.void rename(String fromPath, String toPath)
fromPath - The current path.toPath - The new path.<T> T execute(SessionCallback<F,T> callback)
callback - the SessionCallback.Copyright © 2016. All rights reserved.