public class ScpClient extends SftpClient
| Modifier | Constructor and Description |
|---|---|
|
ScpClient()
Default constructor initializing endpoint configuration.
|
protected |
ScpClient(ScpEndpointConfiguration endpointConfiguration)
Default constructor using endpoint configuration.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected void |
connectAndLogin()
Opens a new connection and performs login with user name and password if set.
|
protected FtpMessage |
createDir(CommandType ftpCommand)
Execute mkDir command and create new directory.
|
protected FtpMessage |
deleteFile(DeleteCommand delete,
TestContext context)
Performs delete file operation.
|
void |
destroy() |
ScpEndpointConfiguration |
getEndpointConfiguration() |
protected FtpMessage |
listFiles(ListCommand list,
TestContext context)
Perform list files operation and provide file information as response.
|
protected FtpMessage |
retrieveFile(GetCommand command,
TestContext context)
Performs retrieve file operation.
|
protected FtpMessage |
storeFile(PutCommand command,
TestContext context)
Performs store file operation.
|
executeCommand, getPrivateKeyPath, getSsh, isDirectory, setSshaddFileNameToTargetPath, createConsumer, createProducer, getFtpClient, getLocalFileInputStream, receive, receive, receive, receive, send, setCorrelationManager, setFtpClientgetActor, getConsumerName, getName, getProducerName, setActor, setBeanName, setNamepublic ScpClient()
protected ScpClient(ScpEndpointConfiguration endpointConfiguration)
endpointConfiguration - public ScpEndpointConfiguration getEndpointConfiguration()
getEndpointConfiguration in interface EndpointgetEndpointConfiguration in class SftpClientprotected FtpMessage createDir(CommandType ftpCommand)
SftpClientcreateDir in class SftpClientprotected FtpMessage listFiles(ListCommand list, TestContext context)
FtpClientlistFiles in class SftpClientprotected FtpMessage deleteFile(DeleteCommand delete, TestContext context)
FtpClientdeleteFile in class SftpClientprotected FtpMessage storeFile(PutCommand command, TestContext context)
FtpClientstoreFile in class SftpClientprotected FtpMessage retrieveFile(GetCommand command, TestContext context)
FtpClientretrieveFile in class SftpClientprotected void connectAndLogin()
FtpClientconnectAndLogin in class SftpClientpublic void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanafterPropertiesSet in class SftpClientpublic void destroy()
throws Exception
destroy in interface org.springframework.beans.factory.DisposableBeandestroy in class SftpClientExceptionCopyright © 2008–2019 ConSol Software GmbH. All rights reserved.