find Samples about mozilla webclient

ictclas <[email protected]> Wed, 16 Jul 2008 00:59:38 -0700 (PDT)
Newsgroups gmane.comp.mozilla.devel.java
Organization http://groups.google.com
Message-ID <[email protected]>
Hello,everyone:
    I'm developing a web Crawler program by Java . I want to use
Mozilla browser to crawl Ajax page( or post downloaded by javascript)
and parse javascript  .  I have known mozilla web client provide some
java interfaces .  But I didn't find some good samples for webclient.
And a Question:
BrowserControlFactory.setAppData(Dir);  what's the "Dir"? is it Gecko
dir?XULRunnder dir ?or entire mozilla-bin dir?

------Thanks All of  You