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 |
get(String remotePath,
InputStreamCallback callback)
Retrieve a remote file as an InputStream.
|
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.String send(Message<?> message, String subDirectory)
message
- The message.subDirectory
- The sub directory.boolean get(String remotePath, InputStreamCallback callback)
remotePath
- The remote path to the file.callback
- the callback.boolean get(Message<?> message, InputStreamCallback callback)
message
- The message which will be evaluated to generate the remote path.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)
T
- The type returned by SessionCallback.doInSession(org.springframework.integration.file.remote.session.Session)
.callback
- the SessionCallback.