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(org.springframework.messaging.Message<?> message,
InputStreamCallback callback)
Retrieve a remote file as an InputStream, based on information in a message.
|
boolean |
remove(java.lang.String path)
Remove a remote file.
|
void |
rename(java.lang.String fromPath,
java.lang.String toPath)
Rename a remote file, creating directories if needed.
|
java.lang.String |
send(org.springframework.messaging.Message<?> message)
Send a file to a remote server, based on information in a message.
|
java.lang.String |
send(org.springframework.messaging.Message<?> message,
java.lang.String subDirectory)
Send a file to a remote server, based on information in a message.
|
java.lang.String send(org.springframework.messaging.Message<?> message)
message - The message.java.lang.Exceptionjava.lang.String send(org.springframework.messaging.Message<?> message,
java.lang.String subDirectory)
message - The message.subDirectory - The sub directory.java.lang.Exceptionboolean get(org.springframework.messaging.Message<?> message,
InputStreamCallback callback)
callback - the callback.boolean remove(java.lang.String path)
path - The full path to the file.void rename(java.lang.String fromPath,
java.lang.String toPath)
fromPath - The current path.toPath - The new path.<T> T execute(SessionCallback<F,T> callback)
callback - the SessionCallback.