W3C home > Mailing lists > Public > www-jigsaw@w3.org > July to August 1997

HTTPResource Questions

From: Anselm Baird_Smith <Anselm.Baird_Smith@sophia.inria.fr>
Date: Fri, 25 Jul 1997 10:33:05 +0200 (MET DST)
Message-Id: <199707250833.KAA09446@www43.inria.fr>
To: Kyle Jamieson <jamieson@mit.edu>
Cc: www-jigsaw@w3.org
Kyle Jamieson writes:
 > Hello,
 > Is anyone familiar enough with the HTTPResource to say how I could extract
 > metadata from a standard HTTP PUT request in the put method of the
 > HTTPResource?  I want to feed Jigsaw this:
 > PUT /Labels HTTP/1.0
 > Content-Type: application/pics-label
 > Content-Length: 123
 > (PICS-1.1 ...)
 > And be able to extract the values of Content-Type and Content-Length in the
 > put method of HTTPResource.  I have tried using getHeaderValue of one of
 > the superclasses of HTTPResource, but this is not reliable when more than
 > one attribute is listed.  Any ideas?

Redefine the HTTPResource PUT method, and then query the request that
you get when invoked (check the FileResource), eg:

public Reply put(Request request) {


Received on Friday, 25 July 1997 04:33:19 UTC

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