com.taleo.integration.client.customstep.ftp
Class DownloadFtpPreStep
java.lang.Object
com.taleo.integration.client.step.BaseStep
com.taleo.integration.client.step.BaseCustomStep
com.taleo.integration.client.customstep.BaseCustomStep
com.taleo.integration.client.customstep.ftp.BaseFtpStep
com.taleo.integration.client.customstep.ftp.DownloadFtpPreStep
- All Implemented Interfaces:
- com.taleo.integration.client.step.CustomStep, com.taleo.integration.client.step.Step
public class DownloadFtpPreStep
- extends BaseFtpStep
Pre-Processing step to download a file from an FTP server and use it as
request data file for import.
When using this step, the request file does not have to be specified when
calling TCC. In fact, if one is specified, it will be ignored.
This step takes all parameters from its base class
com.taleo.integration.client.customstep.BaseFtpStep
and the following
additional parameter:
- filename: The filename to get from the FTP server.
This class is dependent on:
protected java.lang.String filename
- The filename.
DownloadFtpPreStep
public DownloadFtpPreStep()
- Constructor without arguments.
getFilename
public java.lang.String getFilename()
- Get the filename.
- Returns:
setFilename
public void setFilename(java.lang.String filename)
- Set the filename.
- Parameters:
filename
-
getIdentifier
public java.lang.String getIdentifier()
- Specified by:
getIdentifier
in interface com.taleo.integration.client.step.CustomStep
- Specified by:
getIdentifier
in interface com.taleo.integration.client.step.Step
- Specified by:
getIdentifier
in class com.taleo.integration.client.step.BaseCustomStep
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in interface com.taleo.integration.client.step.CustomStep
- Specified by:
getDescription
in interface com.taleo.integration.client.step.Step
- Specified by:
getDescription
in class com.taleo.integration.client.step.BaseCustomStep
getName
public java.lang.String getName()
- Specified by:
getName
in interface com.taleo.integration.client.step.CustomStep
- Specified by:
getName
in interface com.taleo.integration.client.step.Step
- Specified by:
getName
in class com.taleo.integration.client.step.BaseCustomStep
init
public void init(com.taleo.ws.integration.client.GlobalConfig config)
- Overrides:
init
in class BaseFtpStep
getSupportedPipeline
public com.taleo.ws.integration.client.SupportedPipeline getSupportedPipeline()
- Specified by:
getSupportedPipeline
in interface com.taleo.integration.client.step.Step
- Overrides:
getSupportedPipeline
in class com.taleo.integration.client.step.BaseCustomStep
execute
public void execute(com.taleo.ws.integration.client.Pipeline pipeline)
throws com.taleo.integration.client.step.StepException
- Throws:
com.taleo.integration.client.step.StepException
download
public void download(java.io.File localFile)
throws java.lang.Exception
- Download the file from the FTP server and put the result in the specified
local file.
- Parameters:
localFile
- The local file to contain the downloaded data.
- Throws:
java.lang.Exception