camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rohitbrai <rohitb...@gmail.com>
Subject Re: How to use the HeaderFilterStrategy on SMTP endpoint?
Date Tue, 09 Jun 2009 13:04:54 GMT

Sorry for missing that - I am using the Camel 2.0 snapshot.


I am not using HTTPComponent at all. I am using the MailComponent, which is
created by camel. Can I set the HeaderFilterStrategy for the component, or I
need to create my own instance of the component?

Currently I am using smtp like this -
<camel:to uri="smtp://abc@xyz.com?password=dfetgsdf" />

can I make it -
<camel:to
uri="smtp://abc@xyz.com?password=dfetgsdf&amp;headerFilterStrategy=#myStrategy"
/>

where myStrategy is a bean implementing HeaderFilterStrategy and declared in
the Spring XML as -
<bean id="myStrategy"
class="com.pramati.web122.pigeon.PigeonFilterStrategy"></bean>

Regards,
Rohit


Claus Ibsen-2 wrote:
> 
> On Tue, Jun 9, 2009 at 2:38 PM, rohitbrai<rohitbrai@gmail.com> wrote:
>>
>> Is this applicable to the Mail component also?
>>
>> http://issues.apache.org/activemq/browse/CAMEL-915
>>
>> "You can do this in Camel 2.0 in the URI by using the # syntax for lookup
>> in
>> the registry."
> Yes that works for all components where you define an endpoint using
> URI in Camel 2.0. (is in 2.0m1)
> 
>>
>> Regards,
>> Rohit
>>
>>
>> rohitbrai wrote:
>>>
>>> How do I use a custom HeaderFilterStrategy on a SMTP endpoint? I saw the
>>> code and I can see that SMTP component honors the HeaderFilterStrategy.
>>> But I am not able to figure out how do I set it for the endpoint?
>>>
>>> Thanks and Regards,
>>> Rohit
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/How-to-use-the-HeaderFilterStrategy-on-SMTP-endpoint--tp23942024p23942065.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>>
> 
> 
> 
> -- 
> Claus Ibsen
> Apache Camel Committer
> 
> Open Source Integration: http://fusesource.com
> Blog: http://davsclaus.blogspot.com/
> Twitter: http://twitter.com/davsclaus
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-use-the-HeaderFilterStrategy-on-SMTP-endpoint--tp23942024p23942422.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Mime
View raw message