Hi Jiang

Thanks for your reply. And I have taken a look at the class FileComponent, and 
found that the parent class org.apache.camel.impl.DefaultComponent has a method 
"validateParameters" which throws a exception if parameters are invalid.

I am wondering if Camel will support these unknown parameters in latter 
versions or it can provide user-defined parameters?

Thanks.

Xiaopeng Li

-----邮件原件-----
发件人: Willem Jiang [mailto:[email protected]] 
发送时间: 2011年8月29日 10:51
收件人: [email protected]
主题: Re: How to supoort unkown/user-defined parameters in Component

The URI options are defined per component, there is no schema or some 
predefine file to validate the URI option.

If you want to add such a option, you need to take a look at the 
component code first.

On 8/29/11 10:24 AM, XiaoPeng Li wrote:
> Hi
>
> There are many parameters in Camel, which are used to do some configurations. 
> However if users input a unknown parameters, the whole route will fail to 
> start with an "Unknown parameter".
>
> For example in URI options of file component, the options are limited. If I 
> want to add a user-defined option parameter or some unknown option 
> parameters, what should I do?
>
> I am using camel 2.7.2
>
> Thanks
>
> Xiaopeng Li
>
>
>


-- 
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
          http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang

Reply via email to