Package org.apache.camel.component.scp
Class ScpOperations
- java.lang.Object
-
- org.apache.camel.component.scp.ScpOperations
-
- All Implemented Interfaces:
org.apache.camel.component.file.GenericFileOperations<ScpFile>,org.apache.camel.component.file.remote.RemoteFileOperations<ScpFile>
public class ScpOperations extends Object implements org.apache.camel.component.file.remote.RemoteFileOperations<ScpFile>
SCP remote file operations
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classScpOperations.SessionUserInfo
-
Constructor Summary
Constructors Constructor Description ScpOperations()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanbuildDirectory(String directory, boolean absolute)voidchangeCurrentDirectory(String path)voidchangeToParentDirectory()booleanconnect(org.apache.camel.component.file.remote.RemoteFileConfiguration configuration, org.apache.camel.Exchange exchange)booleandeleteFile(String name)voiddisconnect()booleanexistsFile(String name)voidforceDisconnect()StringgetCurrentDirectory()booleanisConnected()ScpFile[]listFiles()ScpFile[]listFiles(String path)org.apache.camel.component.file.GenericFile<ScpFile>newGenericFile()voidreleaseRetrievedFileResources(org.apache.camel.Exchange exchange)booleanrenameFile(String from, String to)booleanretrieveFile(String name, org.apache.camel.Exchange exchange, long isze)booleansendNoop()booleansendSiteCommand(String command)voidsetEndpoint(org.apache.camel.component.file.GenericFileEndpoint<ScpFile> endpoint)booleanstoreFile(String name, org.apache.camel.Exchange exchange, long size)
-
-
-
Method Detail
-
newGenericFile
public org.apache.camel.component.file.GenericFile<ScpFile> newGenericFile()
- Specified by:
newGenericFilein interfaceorg.apache.camel.component.file.GenericFileOperations<ScpFile>
-
setEndpoint
public void setEndpoint(org.apache.camel.component.file.GenericFileEndpoint<ScpFile> endpoint)
- Specified by:
setEndpointin interfaceorg.apache.camel.component.file.GenericFileOperations<ScpFile>
-
deleteFile
public boolean deleteFile(String name) throws org.apache.camel.component.file.GenericFileOperationFailedException
- Specified by:
deleteFilein interfaceorg.apache.camel.component.file.GenericFileOperations<ScpFile>- Throws:
org.apache.camel.component.file.GenericFileOperationFailedException
-
existsFile
public boolean existsFile(String name) throws org.apache.camel.component.file.GenericFileOperationFailedException
- Specified by:
existsFilein interfaceorg.apache.camel.component.file.GenericFileOperations<ScpFile>- Throws:
org.apache.camel.component.file.GenericFileOperationFailedException
-
renameFile
public boolean renameFile(String from, String to) throws org.apache.camel.component.file.GenericFileOperationFailedException
- Specified by:
renameFilein interfaceorg.apache.camel.component.file.GenericFileOperations<ScpFile>- Throws:
org.apache.camel.component.file.GenericFileOperationFailedException
-
buildDirectory
public boolean buildDirectory(String directory, boolean absolute) throws org.apache.camel.component.file.GenericFileOperationFailedException
- Specified by:
buildDirectoryin interfaceorg.apache.camel.component.file.GenericFileOperations<ScpFile>- Throws:
org.apache.camel.component.file.GenericFileOperationFailedException
-
retrieveFile
public boolean retrieveFile(String name, org.apache.camel.Exchange exchange, long isze) throws org.apache.camel.component.file.GenericFileOperationFailedException
- Specified by:
retrieveFilein interfaceorg.apache.camel.component.file.GenericFileOperations<ScpFile>- Throws:
org.apache.camel.component.file.GenericFileOperationFailedException
-
releaseRetrievedFileResources
public void releaseRetrievedFileResources(org.apache.camel.Exchange exchange) throws org.apache.camel.component.file.GenericFileOperationFailedException- Specified by:
releaseRetrievedFileResourcesin interfaceorg.apache.camel.component.file.GenericFileOperations<ScpFile>- Throws:
org.apache.camel.component.file.GenericFileOperationFailedException
-
storeFile
public boolean storeFile(String name, org.apache.camel.Exchange exchange, long size) throws org.apache.camel.component.file.GenericFileOperationFailedException
- Specified by:
storeFilein interfaceorg.apache.camel.component.file.GenericFileOperations<ScpFile>- Throws:
org.apache.camel.component.file.GenericFileOperationFailedException
-
getCurrentDirectory
public String getCurrentDirectory() throws org.apache.camel.component.file.GenericFileOperationFailedException
- Specified by:
getCurrentDirectoryin interfaceorg.apache.camel.component.file.GenericFileOperations<ScpFile>- Throws:
org.apache.camel.component.file.GenericFileOperationFailedException
-
changeCurrentDirectory
public void changeCurrentDirectory(String path) throws org.apache.camel.component.file.GenericFileOperationFailedException
- Specified by:
changeCurrentDirectoryin interfaceorg.apache.camel.component.file.GenericFileOperations<ScpFile>- Throws:
org.apache.camel.component.file.GenericFileOperationFailedException
-
changeToParentDirectory
public void changeToParentDirectory() throws org.apache.camel.component.file.GenericFileOperationFailedException- Specified by:
changeToParentDirectoryin interfaceorg.apache.camel.component.file.GenericFileOperations<ScpFile>- Throws:
org.apache.camel.component.file.GenericFileOperationFailedException
-
listFiles
public ScpFile[] listFiles() throws org.apache.camel.component.file.GenericFileOperationFailedException
- Specified by:
listFilesin interfaceorg.apache.camel.component.file.GenericFileOperations<ScpFile>- Throws:
org.apache.camel.component.file.GenericFileOperationFailedException
-
listFiles
public ScpFile[] listFiles(String path) throws org.apache.camel.component.file.GenericFileOperationFailedException
- Specified by:
listFilesin interfaceorg.apache.camel.component.file.GenericFileOperations<ScpFile>- Throws:
org.apache.camel.component.file.GenericFileOperationFailedException
-
connect
public boolean connect(org.apache.camel.component.file.remote.RemoteFileConfiguration configuration, org.apache.camel.Exchange exchange) throws org.apache.camel.component.file.GenericFileOperationFailedException- Specified by:
connectin interfaceorg.apache.camel.component.file.remote.RemoteFileOperations<ScpFile>- Throws:
org.apache.camel.component.file.GenericFileOperationFailedException
-
isConnected
public boolean isConnected() throws org.apache.camel.component.file.GenericFileOperationFailedException- Specified by:
isConnectedin interfaceorg.apache.camel.component.file.remote.RemoteFileOperations<ScpFile>- Throws:
org.apache.camel.component.file.GenericFileOperationFailedException
-
disconnect
public void disconnect() throws org.apache.camel.component.file.GenericFileOperationFailedException- Specified by:
disconnectin interfaceorg.apache.camel.component.file.remote.RemoteFileOperations<ScpFile>- Throws:
org.apache.camel.component.file.GenericFileOperationFailedException
-
forceDisconnect
public void forceDisconnect() throws org.apache.camel.component.file.GenericFileOperationFailedException- Specified by:
forceDisconnectin interfaceorg.apache.camel.component.file.remote.RemoteFileOperations<ScpFile>- Throws:
org.apache.camel.component.file.GenericFileOperationFailedException
-
sendNoop
public boolean sendNoop() throws org.apache.camel.component.file.GenericFileOperationFailedException- Specified by:
sendNoopin interfaceorg.apache.camel.component.file.remote.RemoteFileOperations<ScpFile>- Throws:
org.apache.camel.component.file.GenericFileOperationFailedException
-
sendSiteCommand
public boolean sendSiteCommand(String command) throws org.apache.camel.component.file.GenericFileOperationFailedException
- Specified by:
sendSiteCommandin interfaceorg.apache.camel.component.file.remote.RemoteFileOperations<ScpFile>- Throws:
org.apache.camel.component.file.GenericFileOperationFailedException
-
-