在 Camel 3 端点 DSL 中使用 RAW()

Rai*_*baz 5 apache-camel camel-ftp

我最近迁移到 Camel 3 的 Camel 应用程序中有一组 FTP 端点,但我在密码编码方面遇到了困难。

我有一些包含特殊字符的密码,例如+,过去我可以通过将端点指定为ftp://user@host/path?password=RAW(password).

但是,我现在想使用新的 Endpoint DSL 声明这些路由,如下所示:

ftp(host:port/path).username(user).password(password)
Run Code Online (Sandbox Code Playgroud)

这样我的密码中的特殊字符是 URL 编码的,因此无法登录。

有没有办法在新的端点 DSL 中复制使用 RAW() 的行为?