I have a set of FTP endpoints in a Camel application I recently migrated to Camel 3, but I am struggling with password encoding.
I have some passwords that contain special characters like +
, and in the past I was able to have Camel connect to these FTP accounts by specifying the endpoint as ftp://user@host/path?password=RAW(password)
.
However, I now want to declare these routes with the new Endpoint DSL, like this:
ftp(host:port/path).username(user).password(password)
And this way the special characters in my passwords are URL encoded and thus fail to login.
Is there a way to replicate the behavior of using RAW() in the new Endpoint DSL?