cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From johnson <john...@erp.tw>
Subject Re: Setting request headers when accessing HTTP URLs from sitemap
Date Tue, 05 Jun 2007 15:32:55 GMT
http://cocoon.apache.org/2.1/userdocs/concepts/modules.html

using modules or using xsp internal to do this.

johnson

Christian Schlichtherile
> Hi,
>  
> 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.
>  
> Kind regards,
> Christian Schlichtherle
> -- 
> Schlichtherle IT Services
> Wittelsbacherstr. 10a
> 10707 Berlin
>  
> Tel: +49 (0) 30 / 34 35 29 29
> Mobil: +49 (0) 173 / 27 12 470
> mailto:christian@schlichtherle.de
> http://www.schlichtherle.de <http://www.schlichtherle.de/>
>  


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


Mime
View raw message