org.apache.camel.component.file.remote
Interface RemoteFileOperations<T>

All Superinterfaces:
org.apache.camel.component.file.GenericFileOperations<T>
All Known Implementing Classes:
FtpOperations, FtpsOperations, SftpOperations

public interface RemoteFileOperations<T>
extends org.apache.camel.component.file.GenericFileOperations<T>

Remote file operations based on some backing framework


Method Summary
 boolean connect(RemoteFileConfiguration configuration)
          Connects to the remote server
 void disconnect()
          Disconnects from the remote server
 boolean isConnected()
          Returns whether we are connected to the remote server or not
 boolean sendNoop()
          Sends a noop command to the remote server
 boolean sendSiteCommand(String command)
          Sends a site command to the remote server
 
Methods inherited from interface org.apache.camel.component.file.GenericFileOperations
buildDirectory, changeCurrentDirectory, changeToParentDirectory, deleteFile, existsFile, getCurrentDirectory, listFiles, listFiles, releaseRetreivedFileResources, renameFile, retrieveFile, setEndpoint, storeFile
 

Method Detail

connect

boolean connect(RemoteFileConfiguration configuration)
                throws org.apache.camel.component.file.GenericFileOperationFailedException
Connects to the remote server

Parameters:
configuration - configuration
Returns:
true if connected
Throws:
org.apache.camel.component.file.GenericFileOperationFailedException - can be thrown

isConnected

boolean isConnected()
                    throws org.apache.camel.component.file.GenericFileOperationFailedException
Returns whether we are connected to the remote server or not

Returns:
true if connected, false if not
Throws:
org.apache.camel.component.file.GenericFileOperationFailedException - can be thrown

disconnect

void disconnect()
                throws org.apache.camel.component.file.GenericFileOperationFailedException
Disconnects from the remote server

Throws:
org.apache.camel.component.file.GenericFileOperationFailedException - can be thrown

sendNoop

boolean sendNoop()
                 throws org.apache.camel.component.file.GenericFileOperationFailedException
Sends a noop command to the remote server

Returns:
true if the noop was a success, false otherwise
Throws:
org.apache.camel.component.file.GenericFileOperationFailedException - can be thrown

sendSiteCommand

boolean sendSiteCommand(String command)
                        throws org.apache.camel.component.file.GenericFileOperationFailedException
Sends a site command to the remote server

Parameters:
command - the command
Returns:
true if the command was a success, false otherwise
Throws:
org.apache.camel.component.file.GenericFileOperationFailedException - can be thrown


Apache Camel