Re: help with cache

Stephane Nicoll wrote:
> It does not work. Here is my code: ...

It looks OK to me.
It will require the services of the designers to explain
how to replace streams.

Looking at the jigsaw source code, it looks hairy. There are
stream observers and reuse, emitters and special cases. Only "body" gets
replaced so you may want to save headers at the same time as saving
content. I'm not sure designers intended non-html bodies. 

Maybe use setContent() method instead of setStream() (but this 
assumes characters not bytes! so maybe not!).

Add extra checks for zero-length content etc.

EOF exceptions are often "normal" so don't assume that your
code is in error.

Walk before you run. Add a check that stream cloning worked. Diagnostic
dump the content. Does it work for simple ascii text local file url?.
HTTP1.0 verses HTTP1.1 server? Why do tutorials
refer to ReplyInterface? What does a null return signify?

My rate is 80 euros/hour if you need more help.

-- 
Christopher William Turner, http://www.cycom.co.uk/ "Serving fine Java
since 1996"

Received on Thursday, 24 January 2002 08:08:48 UTC