• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: D2W and Direct Actions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: D2W and Direct Actions
      • From: Denis Frolov <email@hidden>
References: 
 >Re: D2W and Direct Actions (From: Denis Frolov <email@hidden>)
 >Re: D2W and Direct Actions (From: Guido Neitzer <email@hidden>)
 >Re: D2W and Direct Actions (From: Denis Frolov <email@hidden>)

  • Prev by Date: Re: Missing class after restore
  • Next by Date: How to fetch Null objects
  • Previous by thread: Re: D2W and Direct Actions
  • Next by thread: Re: D2W and Direct Actions
  • Index(es):
    • Date
    • Thread