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

All Superinterfaces:
GenericFileOperations<T>
All Known Implementing Classes:
FtpOperations, SftpOperations

public interface RemoteFileOperations<T>
extends GenericFileOperations<T>

Remote file operations based on some backing framework


Method Summary
 boolean connect(RemoteFileConfiguration configuration)
          Connects to the remote server
 void disconnect()
          Discconects from the remote server
 boolean isConnected()
          Returns whether we are connected to the remote server or not
 
Methods inherited from interface org.apache.camel.component.file.GenericFileOperations
buildDirectory, changeCurrentDirectory, deleteFile, getCurrentDirectory, listFiles, listFiles, renameFile, retrieveFile, setEndpoint, storeFile
 

Method Detail

connect

boolean connect(RemoteFileConfiguration configuration)
                throws GenericFileOperationFailedException
Connects to the remote server

Parameters:
configuration - configuraiton
Returns:
true if connected
Throws:
GenericFileOperationFailedException - can be thrown

isConnected

boolean isConnected()
                    throws GenericFileOperationFailedException
Returns whether we are connected to the remote server or not

Returns:
true if connected, false if not
Throws:
GenericFileOperationFailedException - can be thrown

disconnect

void disconnect()
                throws GenericFileOperationFailedException
Discconects from the remote server

Throws:
GenericFileOperationFailedException - can be thrown


Copyright © 2009 Apache Software Foundation. All Rights Reserved.