|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.component.file.remote.SftpOperations
public class SftpOperations
SFTP remote file operations
| Nested Class Summary | |
|---|---|
static interface |
SftpOperations.ExtendedUserInfo
Extended user info which supports interactive keyboard mode, by entering the password. |
| Constructor Summary | |
|---|---|
SftpOperations()
|
|
SftpOperations(com.jcraft.jsch.Proxy proxy)
|
|
| Method Summary | |
|---|---|
boolean |
buildDirectory(String directory,
boolean absolute)
|
void |
changeCurrentDirectory(String path)
|
void |
changeToParentDirectory()
|
boolean |
connect(RemoteFileConfiguration configuration)
Connects to the remote server |
protected com.jcraft.jsch.Session |
createSession(RemoteFileConfiguration configuration)
|
boolean |
deleteFile(String name)
|
void |
disconnect()
Disconnects from the remote server |
boolean |
existsFile(String name)
|
protected boolean |
fastExistsFile(String name)
|
String |
getCurrentDirectory()
|
boolean |
isConnected()
Returns whether we are connected to the remote server or not |
List<com.jcraft.jsch.ChannelSftp.LsEntry> |
listFiles()
|
List<com.jcraft.jsch.ChannelSftp.LsEntry> |
listFiles(String path)
|
void |
releaseRetreivedFileResources(org.apache.camel.Exchange exchange)
|
boolean |
renameFile(String from,
String to)
|
boolean |
retrieveFile(String name,
org.apache.camel.Exchange exchange)
|
boolean |
sendNoop()
Sends a noop command to the remote server |
boolean |
sendSiteCommand(String command)
Sends a site command to the remote server |
void |
setEndpoint(org.apache.camel.component.file.GenericFileEndpoint<com.jcraft.jsch.ChannelSftp.LsEntry> endpoint)
|
boolean |
storeFile(String name,
org.apache.camel.Exchange exchange)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SftpOperations()
public SftpOperations(com.jcraft.jsch.Proxy proxy)
| Method Detail |
|---|
public void setEndpoint(org.apache.camel.component.file.GenericFileEndpoint<com.jcraft.jsch.ChannelSftp.LsEntry> endpoint)
setEndpoint in interface org.apache.camel.component.file.GenericFileOperations<com.jcraft.jsch.ChannelSftp.LsEntry>
public boolean connect(RemoteFileConfiguration configuration)
throws org.apache.camel.component.file.GenericFileOperationFailedException
RemoteFileOperations
connect in interface RemoteFileOperations<com.jcraft.jsch.ChannelSftp.LsEntry>configuration - configuration
org.apache.camel.component.file.GenericFileOperationFailedException - can be thrown
protected com.jcraft.jsch.Session createSession(RemoteFileConfiguration configuration)
throws com.jcraft.jsch.JSchException
com.jcraft.jsch.JSchException
public boolean isConnected()
throws org.apache.camel.component.file.GenericFileOperationFailedException
RemoteFileOperations
isConnected in interface RemoteFileOperations<com.jcraft.jsch.ChannelSftp.LsEntry>org.apache.camel.component.file.GenericFileOperationFailedException - can be thrown
public void disconnect()
throws org.apache.camel.component.file.GenericFileOperationFailedException
RemoteFileOperations
disconnect in interface RemoteFileOperations<com.jcraft.jsch.ChannelSftp.LsEntry>org.apache.camel.component.file.GenericFileOperationFailedException - can be thrown
public boolean deleteFile(String name)
throws org.apache.camel.component.file.GenericFileOperationFailedException
deleteFile in interface org.apache.camel.component.file.GenericFileOperations<com.jcraft.jsch.ChannelSftp.LsEntry>org.apache.camel.component.file.GenericFileOperationFailedException
public boolean renameFile(String from,
String to)
throws org.apache.camel.component.file.GenericFileOperationFailedException
renameFile in interface org.apache.camel.component.file.GenericFileOperations<com.jcraft.jsch.ChannelSftp.LsEntry>org.apache.camel.component.file.GenericFileOperationFailedException
public boolean buildDirectory(String directory,
boolean absolute)
throws org.apache.camel.component.file.GenericFileOperationFailedException
buildDirectory in interface org.apache.camel.component.file.GenericFileOperations<com.jcraft.jsch.ChannelSftp.LsEntry>org.apache.camel.component.file.GenericFileOperationFailedException
public String getCurrentDirectory()
throws org.apache.camel.component.file.GenericFileOperationFailedException
getCurrentDirectory in interface org.apache.camel.component.file.GenericFileOperations<com.jcraft.jsch.ChannelSftp.LsEntry>org.apache.camel.component.file.GenericFileOperationFailedException
public void changeCurrentDirectory(String path)
throws org.apache.camel.component.file.GenericFileOperationFailedException
changeCurrentDirectory in interface org.apache.camel.component.file.GenericFileOperations<com.jcraft.jsch.ChannelSftp.LsEntry>org.apache.camel.component.file.GenericFileOperationFailedException
public void changeToParentDirectory()
throws org.apache.camel.component.file.GenericFileOperationFailedException
changeToParentDirectory in interface org.apache.camel.component.file.GenericFileOperations<com.jcraft.jsch.ChannelSftp.LsEntry>org.apache.camel.component.file.GenericFileOperationFailedException
public List<com.jcraft.jsch.ChannelSftp.LsEntry> listFiles()
throws org.apache.camel.component.file.GenericFileOperationFailedException
listFiles in interface org.apache.camel.component.file.GenericFileOperations<com.jcraft.jsch.ChannelSftp.LsEntry>org.apache.camel.component.file.GenericFileOperationFailedException
public List<com.jcraft.jsch.ChannelSftp.LsEntry> listFiles(String path)
throws org.apache.camel.component.file.GenericFileOperationFailedException
listFiles in interface org.apache.camel.component.file.GenericFileOperations<com.jcraft.jsch.ChannelSftp.LsEntry>org.apache.camel.component.file.GenericFileOperationFailedException
public boolean retrieveFile(String name,
org.apache.camel.Exchange exchange)
throws org.apache.camel.component.file.GenericFileOperationFailedException
retrieveFile in interface org.apache.camel.component.file.GenericFileOperations<com.jcraft.jsch.ChannelSftp.LsEntry>org.apache.camel.component.file.GenericFileOperationFailedException
public void releaseRetreivedFileResources(org.apache.camel.Exchange exchange)
throws org.apache.camel.component.file.GenericFileOperationFailedException
releaseRetreivedFileResources in interface org.apache.camel.component.file.GenericFileOperations<com.jcraft.jsch.ChannelSftp.LsEntry>org.apache.camel.component.file.GenericFileOperationFailedException
public boolean storeFile(String name,
org.apache.camel.Exchange exchange)
throws org.apache.camel.component.file.GenericFileOperationFailedException
storeFile in interface org.apache.camel.component.file.GenericFileOperations<com.jcraft.jsch.ChannelSftp.LsEntry>org.apache.camel.component.file.GenericFileOperationFailedException
public boolean existsFile(String name)
throws org.apache.camel.component.file.GenericFileOperationFailedException
existsFile in interface org.apache.camel.component.file.GenericFileOperations<com.jcraft.jsch.ChannelSftp.LsEntry>org.apache.camel.component.file.GenericFileOperationFailedException
protected boolean fastExistsFile(String name)
throws org.apache.camel.component.file.GenericFileOperationFailedException
org.apache.camel.component.file.GenericFileOperationFailedException
public boolean sendNoop()
throws org.apache.camel.component.file.GenericFileOperationFailedException
RemoteFileOperations
sendNoop in interface RemoteFileOperations<com.jcraft.jsch.ChannelSftp.LsEntry>org.apache.camel.component.file.GenericFileOperationFailedException - can be thrown
public boolean sendSiteCommand(String command)
throws org.apache.camel.component.file.GenericFileOperationFailedException
RemoteFileOperations
sendSiteCommand in interface RemoteFileOperations<com.jcraft.jsch.ChannelSftp.LsEntry>command - the command
org.apache.camel.component.file.GenericFileOperationFailedException - can be thrown
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||