Package org.citrusframework.ftp.client
Class ScpClient
java.lang.Object
org.citrusframework.endpoint.AbstractEndpoint
org.citrusframework.ftp.client.FtpClient
org.citrusframework.ftp.client.SftpClient
org.citrusframework.ftp.client.ScpClient
- All Implemented Interfaces:
InitializingPhase,Named,ShutdownPhase,Endpoint,org.citrusframework.messaging.Consumer,org.citrusframework.messaging.Producer,org.citrusframework.messaging.ReplyConsumer,org.citrusframework.messaging.SelectiveConsumer
- Since:
- 2.7.6
- Author:
- Christoph Deppisch
-
Constructor Summary
ConstructorsModifierConstructorDescriptionDefault constructor initializing endpoint configuration.protectedScpClient(ScpEndpointConfiguration endpointConfiguration) Default constructor using endpoint configuration. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidOpens a new connection and performs login with user name and password if set.protected FtpMessagecreateDir(CommandType ftpCommand) Execute mkDir command and create new directory.protected FtpMessagedeleteFile(DeleteCommand delete, TestContext context) Performs delete file operation.voiddestroy()voidprotected FtpMessagelistFiles(ListCommand list, TestContext context) Perform list files operation and provide file information as response.protected FtpMessageretrieveFile(GetCommand command, TestContext context) Performs retrieve file operation.protected FtpMessagestoreFile(PutCommand command, TestContext context) Performs store file operation.Methods inherited from class org.citrusframework.ftp.client.SftpClient
executeCommand, getPrivateKeyPath, getSsh, isDirectory, setSshMethods inherited from class org.citrusframework.ftp.client.FtpClient
addFileNameToTargetPath, createConsumer, createProducer, getFtpClient, getLocalFileInputStream, receive, receive, receive, receive, send, setCorrelationManager, setFtpClientMethods inherited from class org.citrusframework.endpoint.AbstractEndpoint
getActor, getConsumerName, getName, getProducerName, setActor, setNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.citrusframework.messaging.Consumer
getNameMethods inherited from interface org.citrusframework.messaging.Producer
getName
-
Constructor Details
-
ScpClient
public ScpClient()Default constructor initializing endpoint configuration. -
ScpClient
Default constructor using endpoint configuration.- Parameters:
endpointConfiguration-
-
-
Method Details
-
getEndpointConfiguration
- Specified by:
getEndpointConfigurationin interfaceEndpoint- Overrides:
getEndpointConfigurationin classSftpClient
-
createDir
Description copied from class:SftpClientExecute mkDir command and create new directory.- Overrides:
createDirin classSftpClient- Returns:
-
listFiles
Description copied from class:FtpClientPerform list files operation and provide file information as response.- Overrides:
listFilesin classSftpClient- Returns:
-
deleteFile
Description copied from class:FtpClientPerforms delete file operation.- Overrides:
deleteFilein classSftpClient
-
storeFile
Description copied from class:FtpClientPerforms store file operation.- Overrides:
storeFilein classSftpClient
-
retrieveFile
Description copied from class:FtpClientPerforms retrieve file operation.- Overrides:
retrieveFilein classSftpClient
-
connectAndLogin
protected void connectAndLogin()Description copied from class:FtpClientOpens a new connection and performs login with user name and password if set.- Overrides:
connectAndLoginin classSftpClient
-
initialize
public void initialize()- Specified by:
initializein interfaceInitializingPhase- Overrides:
initializein classSftpClient
-
destroy
public void destroy()- Specified by:
destroyin interfaceShutdownPhase- Overrides:
destroyin classSftpClient
-