-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
All,
After becoming intrigued over Youssef's recent post (see the "Record and
simulate a web app" thread from the 18th), I wrote come code.
Unfortunately, I wasn't able to get a complete response captured because
of the timing of various events during the request (in summary: the
HttpProcessor does some stuff at the last minute that we can't capture
using application code). So, I've given up on writing the
response-capture part of the code, at least for now.
Since I wrote it, I figured I'd publish it, and here is as good a place
as any (attached, hopefully). I'm sure there are some folks on the list
who would like to see how request wrappers should be written and you can
even see a few other neat things like:
- - how to wrap a servlet input stream and reader
- - how to make a copy of streaming data
- - how to figure out which request parameters are GET versus POST
I'd love comments if anyone has them.
Enjoy!
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkme2ZcACgkQ9CaO5/Lv0PB8QQCgwGJhkc5IPr9sccpeLJZbQ7mL
hyUAnikwihV2dZsG4B1LpRA6Iz4ZV7yW
=Kug3
-----END PGP SIGNATURE-----