Use the username
option:
from("ftp://ftpserverhost.com?password=secret&localWorkDirectory=/tmp&username=username@ftpserverhost.com")
If this does not work and if you use Camel 2.11 or above, you may use the RAW
syntax:
from("ftp://ftpserverhost.com?password=secret&localWorkDirectory=/tmp&username=RAW(username@ftpserverhost.com)")
The RAW
syntax also comes in handy if your options contains &
, +
or other special characters that must not be encoded.