W3C home > Mailing lists > Public > www-jigsaw@w3.org > November to December 1996

PUTs and getInputStream()

From: Gordon Dakin <gad@hunchuen.crystaliz.com>
Date: Sun, 17 Nov 1996 19:01:44 -0500
Message-Id: <199611180001.TAA03702@hunchuen.crystaliz.com>
To: gad@hunchuen.crystaliz.com, www-jigsaw@w3.org

Thanks for your help with proxying.  At this stage, I have a new resource
class that extends FileResource (to take advantage of GET & PUT), plus
methods borrowed from ForwardDirectory to proxy a request on-the-fly.
I've been able to proxy GET requests to a foreign host running a "pure"
Jigsaw.  But I'm having trouble doing the same with PUTs, because I don't
see any way to set the request's input stream (FileResource's put() does
a request.getInputStream() and passes the result to newContent()).  The
request's MimeParser's "input" attribute is  returned by getInputStream(),
but there is no setInputStream() method, and both Request's parser and
Parser's input are protected.  Am I bypassing some "usual" way for the
request to acquire an input stream (e.g., by changing a GET to a PUT

-- Gordon Dakin
Received on Sunday, 17 November 1996 17:57:27 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:30 UTC