I was looking at some console code and recalled this discussion. With the
NIO buffers and charset utilities we can do the filtering in a stream way.
I'll give it a try.
-Jack
On Mon, Jul 20, 2009 at 2:56 PM, Jack Cai greensi...@gmail.com wrote:
The difficulty I see here is that the output is a
The difficulty I see here is that the output is a byte stream, so watching a
string pattern in this stream is not that easy.
An alternative is that instead of inserting the XSRF.js content before the
/body tag, we may simply append it to the end of the response. This
means the script will be put
I happened to get an OOM exception when I tried to look at the web
console jmx viewer while the testsuite was running, coming from the
regular expression replace in XSRFHandler. Looking into this it
collects the entire output into a byte array and then processes it. I
would think this