Contact Us 1-800-596-4880

FTP Connector 3.0 Reference

Support Category: Select

FTP Connector connects to the specified FTP server.

Configurations

Config

Default configuration

Parameters

Name Type Description Default Value Required

Name

String

The name for this configuration. Connectors reference the configuration with this name.

x

Connection

The connection types that can be provided to this configuration.

x

Time Between Size Check

Number

Wait time between size checks to determine if a file is ready to be read. This allows a file write to complete before processing. If no value is provided, the check will not be performed. When enabled, Mule performs two size checks waiting the specified time between calls. If both checks return the same value, the file is ready to be read.This attribute works in tandem with Time Between Size Check Time Unit.

Time Between Size Check Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

A TimeUnit which qualifies the Time Between Size Check attribute. Defaults to SECONDS. In FTP Connector 2.x, the default was MILLISECONDS.

SECONDS

Name

String

The identifier of this element used to reference it in other components

x

Expiration Policy

Configures the minimum amount of time that a dynamic configuration instance can remain idle before the runtime considers it eligible for expiration. This does not mean that the platform will expire the instance at the exact moment that it becomes eligible. The runtime will actually purge the instances when it sees it fit.

Connection Types

FTP Connection

Connects to an FTP server

Parameters
Name Type Description Default Value Required

Working Directory

String

The directory to be considered as the root of every relative path used with this connector. If not provided, it defaults to the remote server default. The connection checks this directory when it connects. If the directory doesn’t exist, the connection fails with FTP:FILE_DOESNT_EXIST. If the path is a file, the connection fails with FTP:FILE_IS_NOT_DIRECTORY. Both errors are children of FTP:CONNECTIVITY. If the directory exists and the server refuses to change to it, the connection fails with FTP:CONNECTIVITY.

Passive

Boolean

Whether to use passive mode. Set to false to switch to active mode. Defaults to true.

true

Enable Remote Verification

Boolean

Enable/disable verification that the remote host taking part of a data connection is the same as the host to which the control connection is attached.

true

Control Encoding

String

Set the control encoding to use in the control channel with the remote server. This does NOT set the encoding for the content of the files to be transferred. Known control encodings: ISO-8859-1 UTF-8

ISO-8859-1

Transfer Mode

Enumeration, one of:

  • BINARY

  • ASCII

The transfer mode to be used. Currently BINARY and ASCII are supported. Defaults to BINARY

BINARY

Proxy Configuration

HTTP or HTTPS tunnel proxy through which the connection to the FTP server is established. If not provided, the connector connects directly to the server.

Connection Timeout

Number

A scalar value representing the amount of time to wait before a connection attempt times out. This attribute works in tandem with Connection Timeout Time Unit. Defaults to 10

10

Connection Timeout Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

A TimeUnit which qualifies the Connection Timeout attribute. Defaults to SECONDS

SECONDS

Response Timeout

Number

A scalar value representing the amount of time to wait before a request for data times out. This attribute works in tandem with Response Timeout Time Unit. Defaults to 10

10

Response Timeout Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

A TimeUnit which qualifies the Response Timeout attribute. Defaults to SECONDS

SECONDS

Host

String

The FTP server host, such as www.mulesoft.com, localhost, or 192.168.0.1, etc

x

Port

Number

The port number of the FTP server to connect

21

Username

String

Username for the FTP Server. Required if the server is authenticated.

Password

String

Password for the FTP Server. Required if the server is authenticated.

Reconnection

When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment will fail if the test doesn’t pass after exhausting the associated reconnection strategy

Pooling Profile

Characteristics of the connection pool

Supported Operations

Operations

Copy

<ftp:copy>

Copies the file at the sourcePath into the targetPath. If targetPath doesn’t exist, and neither does its parent, then an attempt will be made to create depending on the value of the createParentDirectories argument. If such argument is false, then a FTP:ILLEGAL_PATH will be thrown. If the target file already exists, then it will be overwritten if the overwrite argument is true. Otherwise, FTP:FILE_ALREADY_EXISTS error will be thrown. As for the sourcePath, it can either be a file or a directory. If it points to a directory, then it will be copied recursively.

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x

Source Path

String

the path to the file to be copied

x

Target Path

String

the target directory where the file is going to be copied

x

Create Parent Directories

Boolean

whether or not to attempt creating any parent directories which don’t exists.

true

Overwrite

Boolean

whether or not overwrite the file if the target destination already exists.

false

Rename To

String

copied file’s new name. If not provided, original file name will be kept.

Config Ref

ConfigurationProvider

The name of the configuration to be used to execute this component

x

Error Mappings

Array of Error Mapping

Set of error mappings

Reconnection Strategy

A retry strategy in case of connectivity errors

For Configurations

Throws

  • FTP:ACCESS_DENIED

  • FTP:CONNECTIVITY

  • FTP:FILE_ALREADY_EXISTS

  • FTP:ILLEGAL_PATH

  • FTP:RETRY_EXHAUSTED

Create Directory

<ftp:create-directory>

Creates a new directory on directoryPath

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x

Directory Path

String

the new directory’s name

x

Config Ref

ConfigurationProvider

The name of the configuration to be used to execute this component

x

Error Mappings

Array of Error Mapping

Set of error mappings

Reconnection Strategy

A retry strategy in case of connectivity errors

For Configurations

Throws

  • FTP:ACCESS_DENIED

  • FTP:CONNECTIVITY

  • FTP:FILE_ALREADY_EXISTS

  • FTP:ILLEGAL_PATH

  • FTP:RETRY_EXHAUSTED

Delete

<ftp:delete>

Deletes the file pointed by path, provided that it’s not locked

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x

Path

String

the path to the file to be deleted

x

Config Ref

ConfigurationProvider

The name of the configuration to be used to execute this component

x

Error Mappings

Array of Error Mapping

Set of error mappings

Reconnection Strategy

A retry strategy in case of connectivity errors

For Configurations

Throws

  • FTP:ACCESS_DENIED

  • FTP:CONNECTIVITY

  • FTP:FILE_LOCK

  • FTP:ILLEGAL_PATH

  • FTP:RETRY_EXHAUSTED

List

<ftp:list>

Lists all the files in the directoryPath which match the given matcher. If the listing encounters a directory, the output list will include its contents depending on the value of the recursive parameter.

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x

Directory Path

String

the path to the directory to be listed

x

Recursive

Boolean

whether to include the contents of sub-directories. Defaults to false.

false

File Matching Rules

a matcher used to filter the output list

Output Mime Type

String

The mime type of the payload that this operation outputs.

Config Ref

ConfigurationProvider

The name of the configuration to be used to execute this component

x

Streaming Strategy

Configure if repeatable streams should be used and their behaviour

Target Variable

String

The name of a variable on which the operation’s output will be placed

Target Value

String

An expression that will be evaluated against the operation’s output and the outcome of that expression will be stored in the target variable

#[payload]

Error Mappings

Array of Error Mapping

Set of error mappings

Reconnection Strategy

A retry strategy in case of connectivity errors

Output

Type

Array of Message of [String] payload and [Ftp File Attributes] attributes

For Configurations

Throws

  • FTP:ACCESS_DENIED

  • FTP:CONNECTIVITY

  • FTP:ILLEGAL_PATH

  • FTP:RETRY_EXHAUSTED

Move

<ftp:move>

Moves the file at the sourcePath into the targetPath. If targetPath doesn’t exist, and neither does its parent, then an attempt will be made to create depending on the value of the createParentDirectories argument. If such argument is false, then a FTP:ILLEGAL_PATH will be thrown. If the target file already exists, then it will be overwritten if the overwrite argument is true. Otherwise, FTP:FILE_ALREADY_EXISTS error will be thrown. As for the sourcePath, it can either be a file or a directory. If it points to a directory, then it will be moved recursively.

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x

Source Path

String

the path to the file to be moved

x

Target Path

String

the target directory

x

Create Parent Directories

Boolean

whether or not to attempt creating any parent directories which don’t exists.

true

Overwrite

Boolean

whether or not overwrite the file if the target destination already exists.

false

Rename To

String

moved file’s new name. If not provided, original file name will be kept.

Config Ref

ConfigurationProvider

The name of the configuration to be used to execute this component

x

Error Mappings

Array of Error Mapping

Set of error mappings

Reconnection Strategy

A retry strategy in case of connectivity errors

For Configurations

Throws

  • FTP:ACCESS_DENIED

  • FTP:CONNECTIVITY

  • FTP:FILE_ALREADY_EXISTS

  • FTP:ILLEGAL_PATH

  • FTP:RETRY_EXHAUSTED

Read

<ftp:read>

Obtains the content and metadata of a file at a given path. The operation itself returns a Message which payload is a InputStream with the file’s content, and the metadata is represent as a FtpFileAttributes object that’s placed as the message attributes. If the lock parameter is set to true, then a file system level lock will be placed on the file until the input stream this operation returns is closed or fully consumed. Because the lock is actually provided by the host file system, its behavior might change depending on the mounted drive and the operation system on which mule is running. Take that into consideration before blindly relying on this lock. This method also makes a best effort to determine the mime type of the file being read. The file’s extension will be used to make an educated guess on the file’s mime type. The user also has the chance to force the output encoding and mimeType through the outputEncoding and outputMimeType optional parameters.

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x

File Path

String

the path to the file to be read

x

Lock

Boolean

whether or not to lock the file. Defaults to false.

false

Time Between Size Check

Number

Wait time between size checks to determine if a file is ready to be read. This attribute works in tandem with Time Between Size Check Time Unit. Overrides the value set in the connector configuration. If not set, the configuration value is used.

Time Between Size Check Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

Time unit that qualifies Time Between Size Check. Overrides the value set in the connector configuration. If not set, the configuration value is used.

Output Mime Type

String

The mime type of the payload that this operation outputs.

Output Encoding

String

The encoding of the payload that this operation outputs.

Config Ref

ConfigurationProvider

The name of the configuration to be used to execute this component

x

Streaming Strategy

Configure if repeatable streams should be used and their behaviour

Target Variable

String

The name of a variable on which the operation’s output will be placed

Target Value

String

An expression that will be evaluated against the operation’s output and the outcome of that expression will be stored in the target variable

#[payload]

Error Mappings

Array of Error Mapping

Set of error mappings

Reconnection Strategy

A retry strategy in case of connectivity errors

Output

Type

Binary

Attributes Type

For Configurations

Throws

  • FTP:ACCESS_DENIED

  • FTP:CONNECTIVITY

  • FTP:FILE_LOCK

  • FTP:ILLEGAL_PATH

  • FTP:RETRY_EXHAUSTED

Rename

<ftp:rename>

Renames the file pointed by path to the name provided on the to parameter to argument should not contain any path separator. FTP:ILLEGAL_PATH will be thrown if this precondition is not honored.

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x

Path

String

the path to the file to be renamed

x

New Name

String

the file’s new name

x

Overwrite

Boolean

whether or not overwrite the file if the target destination already exists.

false

Config Ref

ConfigurationProvider

The name of the configuration to be used to execute this component

x

Error Mappings

Array of Error Mapping

Set of error mappings

Reconnection Strategy

A retry strategy in case of connectivity errors

For Configurations

Throws

  • FTP:ACCESS_DENIED

  • FTP:CONNECTIVITY

  • FTP:FILE_ALREADY_EXISTS

  • FTP:ILLEGAL_PATH

  • FTP:RETRY_EXHAUSTED

Write

<ftp:write>

Writes the content into the file pointed by path. If the directory on which the file is attempting to be written doesn’t exist, then the operation will either throw FTP:ILLEGAL_PATH error or create such folder depending on the value of the createParentDirectory. If the file itself already exists, then the behavior depends on the supplied mode. This operation also supports locking support depending on the value of the lock argument, but following the same rules and considerations as described in the read operation.

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x

Path

String

the path of the file to be written

x

Content

Any

the content to be written into the file. Defaults to the current Message payload

#[payload]

Create Parent Directories

Boolean

whether or not to attempt creating any parent directories which don’t exists.

true

Lock

Boolean

whether or not to lock the file. Defaults to false

false

Write Mode

Enumeration, one of:

  • OVERWRITE

  • APPEND

  • CREATE_NEW

a FileWriteMode. Defaults to OVERWRITE

OVERWRITE

Config Ref

ConfigurationProvider

The name of the configuration to be used to execute this component

x

Error Mappings

Array of Error Mapping

Set of error mappings

Reconnection Strategy

A retry strategy in case of connectivity errors

For Configurations

Throws

  • FTP:ACCESS_DENIED

  • FTP:CONNECTIVITY

  • FTP:FILE_ALREADY_EXISTS

  • FTP:FILE_DOESNT_EXIST

  • FTP:FILE_LOCK

  • FTP:ILLEGAL_CONTENT

  • FTP:ILLEGAL_PATH

  • FTP:RETRY_EXHAUSTED

Sources

On New or Updated File

<ftp:listener>

Polls a directory looking for files that have been created on it. One message will be generated for each file that is found. The key part of this functionality is how to determine that a file is actually new. There’re three strategies for that: Set the autoDelete parameter to true: This will delete each processed file after it has been processed, causing all files obtained in the next poll to be necessarily new Set moveToDirectory parameter: This will move each processed file to a different directory after it has been processed, achieving the same effect as autoDelete but without loosing the file Use the watermarkEnabled parameter to only pick files that have been created or updated after the last poll was executed. A matcher can also be used for additional filtering of files.

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x

Directory

String

The directory on which polled files are contained

Recursive

Boolean

Whether or not to also files contained in sub directories.

true

Matcher

A matcher used to filter events on files which do not meet the matcher’s criteria

Watermark Enabled

Boolean

Controls whether or not to do watermarking, and if so, if the watermark should consider the file’s modification or creation timestamps

false

Time Between Size Check

Number

Wait time between size checks to determine if a file is ready to be read. This allows a file write to complete before processing. You can disable this feature by omitting a value. When enabled, Mule performs two size checks waiting the specified time between calls. If both checks return the same value, the file is ready to be read. Overrides the value set in the connector configuration. If not set, the configuration value is used.

Time Between Size Check Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

A TimeUnit which qualifies the Time Between Size Check attribute. Overrides the value set in the connector configuration. If not set, the configuration value is used.

Output Mime Type

String

The mime type of the payload that this operation outputs.

Output Encoding

String

The encoding of the payload that this operation outputs.

Primary Node Only

Boolean

Whether to run this source only on the primary node when the app runs in a cluster. The default is true, so in a cluster, including CloudHub 2.0, only the primary node polls the directory. Set to false to poll on every node.

true

Config Ref

ConfigurationProvider

The name of the configuration to be used to execute this component

x

Scheduling Strategy

SchedulingStrategy

Configures the scheduler that triggers the polling

x

Streaming Strategy

Configure if repeatable streams should be used and their behaviour

Redelivery Policy

Defines a policy for processing the redelivery of the same message

Reconnection Strategy

A retry strategy in case of connectivity errors

Auto Delete

Boolean

Whether each file should be deleted after processing or not

false

Move To Directory

String

If provided, each processed file will be moved to a directory pointed by this path.

Rename To

String

This parameter works in tandem with moveToDirectory. Use this parameter to enter the name under which the file should be moved. Do not set this parameter if moveToDirectory hasn’t been set as well.

Apply Post Action When Failed

Boolean

Whether any of the post actions (autoDelete and moveToDirectory) should also be applied in case the file failed to be processed. If set to false, no failed files will be moved nor deleted.

true

Overwrite

Boolean

Enables you to overwrite the target file when the destination file has the same name

false

Output

Type

Any

Attributes Type

For Configurations

Types

Reconnection

Field Type Description Default Value Required

Fails Deployment

Boolean

When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment will fail if the test doesn’t pass after exhausting the associated reconnection strategy

Reconnection Strategy

The reconnection strategy to use

Reconnect

Field Type Description Default Value Required

Frequency

Number

How often (in ms) to reconnect

Blocking

Boolean

If false, the reconnection strategy will run in a separate, non-blocking thread

Count

Number

How many reconnection attempts to make

Reconnect Forever

Field Type Description Default Value Required

Frequency

Number

How often (in ms) to reconnect

Blocking

Boolean

If false, the reconnection strategy will run in a separate, non-blocking thread

Pooling Profile

Field Type Description Default Value Required

Max Active

Number

Controls the maximum number of Mule components that can be borrowed from a session at one time. When set to a negative value, there is no limit to the number of components that may be active at one time. When maxActive is exceeded, the pool is said to be exhausted.

Max Idle

Number

Controls the maximum number of Mule components that can sit idle in the pool at any time. When set to a negative value, there is no limit to the number of Mule components that may be idle at one time.

Max Wait

Number

Specifies the number of milliseconds to wait for a pooled component to become available when the pool is exhausted and the exhaustedAction is set to WHEN_EXHAUSTED_WAIT.

Min Eviction Millis

Number

Determines the minimum amount of time an object may sit idle in the pool before it is eligible for eviction. When non-positive, no objects will be evicted from the pool due to idle time alone.

Eviction Check Interval Millis

Number

Specifies the number of milliseconds between runs of the object evictor. When non-positive, no object evictor is executed.

Exhausted Action

Enumeration, one of:

  • WHEN_EXHAUSTED_GROW

  • WHEN_EXHAUSTED_WAIT

  • WHEN_EXHAUSTED_FAIL

Specifies the behavior of the Mule component pool when the pool is exhausted. Possible values are: "WHEN_EXHAUSTED_FAIL", which will throw a NoSuchElementException, "WHEN_EXHAUSTED_WAIT", which will block by invoking Object.wait(long) until a new or idle object is available, or WHEN_EXHAUSTED_GROW, which will create a new Mule instance and return it, essentially making maxActive meaningless. If a positive maxWait value is supplied, it will block for at most that many milliseconds, after which a NoSuchElementException will be thrown. If maxThreadWait is a negative value, it will block indefinitely.

Initialisation Policy

Enumeration, one of:

  • INITIALISE_NONE

  • INITIALISE_ONE

  • INITIALISE_ALL

Determines how components in a pool should be initialized. The possible values are: INITIALISE_NONE (will not load any components into the pool on startup), INITIALISE_ONE (will load one initial component into the pool on startup), or INITIALISE_ALL (will load all components in the pool on startup)

Disabled

Boolean

Whether pooling should be disabled

Expiration Policy

Field Type Description Default Value Required

Max Idle Time

Number

A scalar time value for the maximum amount of time a dynamic configuration instance should be allowed to be idle before it’s considered eligible for expiration

Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

A time unit that qualifies the maxIdleTime attribute

Ftp File Attributes

Metadata about a file in a FTP server

Field Type Description Default Value Required

Directory

Boolean

Name

String

Path

String

Regular File

Boolean

Size

Number

Symbolic Link

Boolean

Timestamp

DateTime

Matcher

A set of criteria used to filter files stored in a FTP server. The file’s properties are to be represented on an instance of FtpFileAttributes.

Field Type Description Default Value Required

Timestamp Since

DateTime

Files created before this date are rejected. If no creation date is available, the File will be processed.

Timestamp Until

DateTime

Files created after this date are rejected. If no creation date is available, the File will be processed.

Not Updated In The Last

Number

Minimum time that should have passed since a file was updated to not be rejected. This attribute works in tandem with Not Updated In The Last Time Unit.

Not Updated In The Last Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

A TimeUnit which qualifies the Not Updated In The Last attribute. Defaults to SECONDS.

SECONDS

Updated In The Last

Number

Maximum time that should have passed since a file was updated to not be rejected. This attribute works in tandem with Updated In The Last Time Unit.

Updated In The Last Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

A TimeUnit which qualifies the Updated In The Last attribute. Defaults to SECONDS.

SECONDS

Case Sensitive

Boolean

Enables you to configure an external file system matcher as case sensitive or insensitive.

true

Filename Pattern

String

A matching pattern to be applied on the file name. It can be a glob or regex expression, qualified with the glob: or regex: prefixes. If no prefix is supplied, glob is assumed.

Path Pattern

String

A matching pattern to be applied on the file path. It can be a glob or regex expression, qualified with the glob: or regex: prefixes. If no prefix is supplied, glob is assumed.

Directories

Enumeration, one of:

  • REQUIRE

  • INCLUDE

  • EXCLUDE

If true, the predicate will only accept files which are directories. If false, the predicate will only accept files which are not directories. If not set, then the criteria doesn’t apply.

INCLUDE

Regular Files

Enumeration, one of:

  • REQUIRE

  • INCLUDE

  • EXCLUDE

If true, the predicate will only accept files which are not directories nor symbolic links. If false, the predicate will only accept files which are directories or symbolic links. If not set, then the criteria doesn’t apply.

INCLUDE

Sym Links

Enumeration, one of:

  • REQUIRE

  • INCLUDE

  • EXCLUDE

If true, the predicate will only accept files which are symbolic links. If false, the predicate will only accept files which are symbolic links. If not set, then the criteria doesn’t apply.

INCLUDE

Min Size

Number

The minimum file size in bytes. Files smaller than this are rejected

Max Size

Number

The maximum file size in bytes. Files larger than this are rejected

Repeatable In Memory Stream

Field Type Description Default Value Required

Initial Buffer Size

Number

This is the amount of memory that will be allocated in order to consume the stream and provide random access to it. If the stream contains more data than can be fit into this buffer, then it will be expanded by according to the bufferSizeIncrement attribute, with an upper limit of maxInMemorySize.

Buffer Size Increment

Number

This is by how much will be buffer size by expanded if it exceeds its initial size. Setting a value of zero or lower will mean that the buffer should not expand, meaning that a STREAM_MAXIMUM_SIZE_EXCEEDED error will be raised when the buffer gets full.

Max Buffer Size

Number

This is the maximum amount of memory that will be used. If more than that is used then a STREAM_MAXIMUM_SIZE_EXCEEDED error will be raised. A value lower or equal to zero means no limit.

Buffer Unit

Enumeration, one of:

  • BYTE

  • KB

  • MB

  • GB

The unit in which all these attributes are expressed

Repeatable File Store Stream

Field Type Description Default Value Required

In Memory Size

Number

Defines the maximum memory that the stream should use to keep data in memory. If more than that is consumed then it will start to buffer the content on disk.

Buffer Unit

Enumeration, one of:

  • BYTE

  • KB

  • MB

  • GB

The unit in which maxInMemorySize is expressed

Redelivery Policy

Field Type Description Default Value Required

Max Redelivery Count

Number

The maximum number of times a message can be redelivered and processed unsuccessfully before triggering process-failed-message

Message Digest Algorithm

String

The secure hashing algorithm to use. If not set, the default is SHA-256.

Message Identifier

Defines which strategy is used to identify the messages.

Object Store

ObjectStore

The object store where the redelivery counter for each message is going to be stored.

Redelivery Policy Message Identifier

Field Type Description Default Value Required

Use Secure Hash

Boolean

Whether to use a secure hash algorithm to identify a redelivered message

Id Expression

String

Defines one or more expressions to use to determine when a message has been redelivered. This property may only be set if useSecureHash is false.

Error Mapping

Field Type Description Default Value Required

Source

Enumeration, one of:

  • ANY

  • REDELIVERY_EXHAUSTED

  • TRANSFORMATION

  • EXPRESSION

  • SECURITY

  • CLIENT_SECURITY

  • SERVER_SECURITY

  • ROUTING

  • CONNECTIVITY

  • RETRY_EXHAUSTED

  • TIMEOUT

Target

String

x

Repeatable In Memory Iterable

Field Type Description Default Value Required

Initial Buffer Size

Number

This is the amount of instances that will be initially be allowed to be kept in memory in order to consume the stream and provide random access to it. If the stream contains more data than can fit into this buffer, then it will be expanded according to the bufferSizeIncrement attribute, with an upper limit of maxInMemorySize. Default value is 100 instances.

Buffer Size Increment

Number

This is by how much will the buffer size by expanded if it exceeds its initial size. Setting a value of zero or lower will mean that the buffer should not expand, meaning that a STREAM_MAXIMUM_SIZE_EXCEEDED error will be raised when the buffer gets full. Default value is 100 instances.

Max Buffer Size

Number

This is the maximum amount of memory that will be used. If more than that is used then a STREAM_MAXIMUM_SIZE_EXCEEDED error will be raised. A value lower or equal to zero means no limit.

Repeatable File Store Iterable

Field Type Description Default Value Required

In Memory Objects

Number

This is the maximum amount of instances that will be kept in memory. If more than that is required, then it will start to buffer the content on disk.

Buffer Unit

Enumeration, one of:

  • BYTE

  • KB

  • MB

  • GB

The unit in which maxInMemorySize is expressed

Http Tunnel Proxy

Groups FTP Proxy connection parameters

Field Type Description Default Value Required

Proxy host

String

Host of the FTP proxy server, such as proxy.example.com. Required when a proxy is configured.

x

Proxy port

Number

The port number of the FTP proxy server to connect.

3128

Proxy username

String

Username for the proxy server, if it is authenticated.

Proxy password

String

Password for the proxy server, if it is authenticated.

Https Tunnel Proxy

Groups FTP HTTPs Proxy connection parameters

Field Type Description Default Value Required

TLS Configuration

Tls

TLS context used to connect to the HTTPS proxy. If not provided, Mule’s default is used. If the proxy certificate is not trusted, the connection fails with FTP:CONNECTIVITY.

Proxy host

String

Host of the FTP proxy server, such as proxy.example.com. Required when a proxy is configured.

x

Proxy port

Number

The port number of the FTP proxy server to connect.

3128

Proxy username

String

Username for the proxy server, if it is authenticated.

Proxy password

String

Password for the proxy server, if it is authenticated.

Tls

Field Type Description Default Value Required

Enabled Protocols

String

A comma separated list of protocols enabled for this context.

Enabled Cipher Suites

String

A comma separated list of cipher suites enabled for this context.

Trust Store

Configures the TLS truststore.

Key Store

Configures the TLS keystore.

Revocation Check

Configures a revocation checking mechanism.

Trust Store

Field Type Description Default Value Required

Path

String

The location (which will be resolved relative to the current classpath and file system, if possible) of the trust store.

Password

String

The password used to protect the trust store.

Type

String

The type of store used.

Algorithm

String

The algorithm used by the trust store.

Insecure

Boolean

If true, no certificate validations will be performed, rendering connections vulnerable to attacks. Use at your own risk.

Key Store

Field Type Description Default Value Required

Path

String

The location (which will be resolved relative to the current classpath and file system, if possible) of the key store.

Type

String

The type of store used.

Alias

String

When the key store contains many private keys, this attribute indicates the alias of the key that should be used. If not defined, the first key in the file will be used by default.

Key Password

String

The password used to protect the private key.

Password

String

The password used to protect the key store.

Algorithm

String

The algorithm used by the key store.

Standard Revocation Check

Field Type Description Default Value Required

Only End Entities

Boolean

Only verify the last element of the certificate chain.

Prefer Crls

Boolean

Try CRL instead of OCSP first.

No Fallback

Boolean

Do not use the secondary checking method (the one not selected before).

Soft Fail

Boolean

Avoid verification failure when the revocation server can not be reached or is busy.

Custom Ocsp Responder

Field Type Description Default Value Required

Url

String

The URL of the OCSP responder.

Cert Alias

String

Alias of the signing certificate for the OCSP response (must be in the trust store), if present.

Crl File

Field Type Description Default Value Required

Path

String

The path to the CRL file.