cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <joerg.heini...@gmx.de>
Subject Re: Setting request headers when accessing HTTP URLs from sitemap
Date Tue, 05 Jun 2007 17:43:14 GMT
On 05.06.2007 17:32, johnson wrote:

> http://cocoon.apache.org/2.1/userdocs/concepts/modules.html
> 
> using modules or using xsp internal to do this.

I don't see how they can help here.

Joerg

> Christian Schlichtherile

>> nI need to set rgequest headers when accessing an http: URL in a 
>> sitemap pipeline.
>>  
>> I've digged into the source and came up with a solution to inherit 
>> from the class 
>> org.apache.excalibur.source.impl.HTTPClientSourceFactory and override 
>> the method getSource(String, Map). The second parameter is a Map which 
>> is added to the GET request as header parameters by the super class. 
>> This map seems to be null all the time. So I create a HashMap, 
>> populate it with my parameters and pass it to the super class 
>> implementation. Finally I needed to register my custom component in 
>> the configuration file cocoon.xconf. Done.
>>  
>> Since all the building bricks already exist in Cocoon, I wonder if 
>> this has been done already. There must be an even simpler solution, 
>> but I could not figure it. Any hints would be welcome.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message