On Jun 5, 2007, at 11:09 PM, Anjo Krank wrote:


Another idea is using one common session for all the spiders. It should be pretty easy to add a method to Browser object like "isRobot()" which checks user agent against a known list of spiders and use this method to feed one session to all the spiders.

Well, what good fortune that there was some code floating around...

Modified Files:
        ERXBrowser.java ERXBrowserFactory.java ERXBasicBrowser.java
Log Message:
little bit saner browser creation (cached by ua string), added robot matching

Adding it to app.createSessionForRequest() is left to the user, you may need to write a pool and check out/in if you run MT.

Thanks Anjo! It feels so good each time I can delete code from our frameworks and use one from Wonder.

--
Denis Frolov
Design Maximum MA

Tel: +7 863 2648211
Fax: +7 863 2645229
Web: http://www.designmaximum.com



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to