public interface RemoteFileOperations<F>
| Modifier and Type | Method and Description | 
|---|---|
java.lang.String | 
append(org.springframework.messaging.Message<?> message)
Send a file to a remote server, based on information in a message, appending. 
 | 
java.lang.String | 
append(org.springframework.messaging.Message<?> message,
      java.lang.String subDirectory)
Send a file to a remote server, based on information in a message, appending. 
 | 
<T> T | 
execute(SessionCallback<F,T> callback)
Execute the callback's doInSession method after obtaining a session. 
 | 
<T,C> T | 
executeWithClient(ClientCallback<C,T> callback)
Execute the callback's doWithClient method after obtaining a session's
 client, providing access to low level methods. 
 | 
boolean | 
exists(java.lang.String path)
Check if a file exists on the remote server. 
 | 
boolean | 
get(org.springframework.messaging.Message<?> message,
   InputStreamCallback callback)
Retrieve a remote file as an InputStream, based on information in a message. 
 | 
boolean | 
get(java.lang.String remotePath,
   InputStreamCallback callback)
Retrieve a remote file as an InputStream. 
 | 
Session<F> | 
getSession()
Obtain a raw Session object. 
 | 
<T> T | 
invoke(OperationsCallback<F,T> action)
Invoke the callback and run all operations on the template argument in a dedicated
 thread-bound session and reliably close the it afterwards. 
 | 
F[] | 
list(java.lang.String path)
List the files at the remote path. 
 | 
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,
    FileExistsMode... mode)
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,
    FileExistsMode... mode)
Send a file to a remote server, based on information in a message. 
 | 
java.lang.String send(org.springframework.messaging.Message<?> message,
                      FileExistsMode... mode)
message - The message.mode - See FileExistsMode (optional; default REPLACE). A
 vararg is used to make the argument optional; only the first will be
 used if more than one is provided.java.lang.String send(org.springframework.messaging.Message<?> message,
                      java.lang.String subDirectory,
                      FileExistsMode... mode)
message - The message.subDirectory - The sub directory.mode - See FileExistsMode (optional; default REPLACE). A
 vararg is used to make the argument optional; only the first will be
 used if more than one is provided.java.lang.String append(org.springframework.messaging.Message<?> message)
message - The message.java.lang.String append(org.springframework.messaging.Message<?> message,
                        java.lang.String subDirectory)
message - The message.subDirectory - The sub directory.boolean get(java.lang.String remotePath,
            InputStreamCallback callback)
remotePath - The remote path to the file.callback - the callback.boolean get(org.springframework.messaging.Message<?> message,
            InputStreamCallback callback)
message - The message which will be evaluated to generate the remote path.callback - the callback.boolean exists(java.lang.String path)
path - The full path to the file.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.F[] list(java.lang.String path)
path - the 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.<T> T invoke(OperationsCallback<F,T> action)
T - the return type.action - the call back.OperationsCallback.doInOperations(RemoteFileOperations)<T,C> T executeWithClient(ClientCallback<C,T> callback)
T - The type returned by ClientCallback.doWithClient(Object).C - The type of the underlying client object.callback - the ClientCallback.