Re: D2W and Direct Actions
Re: D2W and Direct Actions
- Subject: Re: D2W and Direct Actions
- From: Anjo Krank <email@hidden>
- Date: Tue, 5 Jun 2007 21:09:33 +0200
Am 03.06.2007 um 10:29 schrieb Denis Frolov:
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.
Cheers, Anjo
_______________________________________________
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