java.lang.Object |
↳ |
org.mule.modules.ftps.FTPSConnector |
Known Direct Subclasses
|
Known Indirect Subclasses
|
Class Overview
The FTPS Connector allows you to establish a secure FTP connection
Summary
Fields |
private
B2BProvider |
b2b |
|
private
Boolean |
disableCertificateValidation |
Password for the FTPS Server
|
private
String |
host |
Domain or IP address of the server
|
private
String |
keyStorePassword |
Specify the password for SSL Certificate
|
private
String |
keyStorePath |
Specify where the SSL Certificate is located
|
private
static
final
Logger |
logger |
|
private
Integer |
maxActivePort |
Maximum port for Active data transfers
|
private
Integer |
maxConcurrentReads |
If set, the connector will try to upload files to the temporary directory and move them to their final destination once the
upload completes."
|
private
Integer |
minActivePort |
Minimum port for Active data transfers
|
private
MuleContext |
muleContext |
|
private
String |
password |
Password for the FTPS Server
|
private
String |
port |
Port of the FTP server
|
private
String |
reportedIpAddress |
Reportable IP address to be used in Active Mode
|
private
FTPSSSLMode |
sslEncryptionMode |
Choose between implicit and explicit modes
|
private
FTPSTransferMode |
transferMode |
Choose between active and passive modes
|
private
String |
uploadTmpDir |
If set, the connector will try to upload files to the temporary directory and move them to their final destination once the
upload completes."
|
private
Boolean |
useB2BProvider |
Integrate with Anypoint B2B platform to manage your AS2 Connector and record AS2 transmissions. |
private
String |
username |
Username for the FTPS Server
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Constants
private
static
final
int
DEFAULT_EXPLICIT_FTPS_PORT
Constant Value:
21
(0x00000015)
private
static
final
String
DEFAULT_FILE_EXT
private
static
final
String
PRIVATE
Fields
private
Boolean
disableCertificateValidation
Password for the FTPS Server
private
String
host
Domain or IP address of the server
private
String
keyStorePassword
Specify the password for SSL Certificate
private
String
keyStorePath
Specify where the SSL Certificate is located
private
static
final
Logger
logger
private
Integer
maxActivePort
Maximum port for Active data transfers
private
Integer
maxConcurrentReads
If set, the connector will try to upload files to the temporary directory and move them to their final destination once the
upload completes."
private
Integer
minActivePort
Minimum port for Active data transfers
private
MuleContext
muleContext
private
String
password
Password for the FTPS Server
private
String
reportedIpAddress
Reportable IP address to be used in Active Mode
private
FTPSSSLMode
sslEncryptionMode
Choose between implicit and explicit modes
Choose between active and passive modes
private
String
uploadTmpDir
If set, the connector will try to upload files to the temporary directory and move them to their final destination once the
upload completes."
private
Boolean
useB2BProvider
Integrate with Anypoint B2B platform to manage your AS2 Connector and record AS2 transmissions. The B2B Connector must be
set up before enabling this feature.
private
String
username
Username for the FTPS Server
Public Constructors
Public Methods
public
B2BProvider
getB2b
()
public
Boolean
getDisableCertificateValidation
()
Returns
- the disableCertificateValidation
public
String
getKeyStorePassword
()
public
String
getKeyStorePath
()
public
int
getMaxActivePort
()
public
Integer
getMaxConcurrentReads
()
public
int
getMinActivePort
()
public
String
getPassword
()
public
String
getReportedIpAddress
()
public
String
getUploadTmpDir
()
public
Boolean
getUseB2BProvider
()
public
String
getUsername
()
public
void
read
(SourceCallback callback, String filePath, String fileName, String moveToDir, int pollingPeriod, String specId)
Parameters
callback
| Used to pass the payload of the read file to the next component in the flow |
filePath
| The path to the file to be read from the server |
fileName
| The filename to be read from the server (wildcards supported) |
moveToDir
| Directory to move files to after they've been read. If no value is set, the file will be deleted |
pollingPeriod
| The period to wait between checking the server for updates |
specId
| FTPS Specification ID taken from the B2B system when in use |
public
void
setB2b
(B2BProvider b2b)
public
void
setDisableCertificateValidation
(Boolean disableCertificateValidation)
Parameters
disableCertificateValidation
| The disableCertificateValidation to set
|
public
void
setHost
(String host)
public
void
setKeyStorePassword
(String keyStorePassword)
Parameters
keyStorePassword
| The keyStorePassword to set
|
public
void
setKeyStorePath
(String keyStorePath)
Parameters
keyStorePath
| The keyStorePath to set
|
public
void
setMaxActivePort
(int maxActivePort)
Parameters
maxActivePort
| The maxActivePort to set
|
public
void
setMaxConcurrentReads
(Integer maxConcurrentReads)
Parameters
maxConcurrentReads
| The maxConcurrentReads to set
|
public
void
setMinActivePort
(int minActivePort)
Parameters
minActivePort
| The minActivePort to set
|
public
void
setMuleContext
(MuleContext muleContext)
public
void
setPassword
(String password)
Parameters
password
| The password to set
|
public
void
setPort
(String port)
public
void
setReportedIpAddress
(String reportedIpAddress)
Parameters
reportedIpAddress
| The reportedIpAddress to set
|
public
void
setSslEncryptionMode
(FTPSSSLMode sslEncryptionMode)
Parameters
sslEncryptionMode
| The sslEncryptionMode to set
|
public
void
setTransferMode
(FTPSTransferMode transferMode)
Parameters
transferMode
| The transferMode to set
|
public
void
setUploadTmpDir
(String uploadTmpDir)
Parameters
uploadTmpDir
| The uploadTmpDir to set
|
public
void
setUseB2BProvider
(Boolean useB2BProvider)
Parameters
useB2BProvider
| The useB2BProvider to set
|
public
void
setUsername
(String username)
Parameters
username
| The username to set
|
public
String
write
(String filePath, String fileName, String specId, MuleEvent muleEvent)
Parameters
filePath
| The path to the file to be read from the server. |
fileName
| Prefix for the new file to be created |
specId
| FTPS Specification ID taken from the B2B system when in use. |
muleEvent
| Event where to read the payload from |
Returns
- the definitive filename stored on the server