Re: D2W and Direct Actions
Re: D2W and Direct Actions
- Subject: Re: D2W and Direct Actions
- From: Denis Frolov <email@hidden>
- Date: Wed, 6 Jun 2007 11:39:02 +0400
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden