Default FTP session factory
Session factory for creating connections with an FTP server.
Simple FTP session factory that doesn't provide session caching/pooling, but creates a new session for every request.
When used by a FTP inbound channel adapter this creates a new session + login attempt each time the adapter synchronizes the remote FTP directory. When used by a FTP outbound channel adapter this creates a new session + login attempt each time the adapter receives a message.
Id
Name that uniquely identifies this flow component.
Required
File type
Indicates how the file(s) being transfered should be treated:
0
- ASCII file type
1
- EBCDIC file type
2
- Binary file type
3
- Local file type
Default is 2
(binary file type, i.e. no translations should be performed).
Buffer size
Default is '2048'.
see https://issues.apache.org/jira/browse/NET-207
Client mode
Indicates how data transfers are expected to occur between the client (local) and server (remote). Choices are:
0
- Active local data connection mode
The server should connect to the client's data port to initiate a data transfer. Note that these types of connections are problematic when the server is not located in the same network, because firewalls on the client side usually block incoming connections.
2
- Passive local data connection mode
The server is in passive mode, requiring the client to connect to the server's data port to initiate a transfer.
Default is 0
(active mode).
Control encoding
Sets the character encoding used by the FTP control connection. Some FTP servers require that commands be issued in a non-ASCII encoding like UTF-8
so that filenames with multi-byte character representations (e.g, Big 8) can be specified.
Default is ISO-8859-1
.
Connect timeout
The socket timeout (in milliseconds) when connecting to the server.
A timeout of zero is interpreted as an infinite timeout: the connection will block until established or an error occurs.
Default is 0
(infinite timeout).
Default timeout
The socket timeout (in milliseconds) when reading data from an established connection.
A timeout of zero is interpreted as an infinite timeout: the connection will block until the data has been read or an error occurs.
Default is 0
(infinite timeout).
Data timeout
The socket timeout (in milliseconds) when reading from the data connection.
A timeout of zero is interpreted as an infinite timeout: the data connection will block until the data has been read or an error occurs.
Note that this timeout will also be applied when accepting incoming connections whilst establishing an active local data connection.
Default is 0
(infinite timeout).