W3C home > Mailing lists > Public > www-jigsaw@w3.org > January to February 1999

Re: Can you add a filter to ProxyFrame?

From: Benoit Mahe <Benoit.Mahe@sophia.inria.fr>
Date: Mon, 08 Feb 1999 10:09:02 +0100
Message-ID: <36BEA9AE.A2EDEFCC@sophia.inria.fr>
To: Ray Cromwell <ray@westlake.com>
CC: www-jigsaw@w3.org, Ray Cromwell <ray@biggles.westlake.com>


Ray Cromwell wrote:

> I have an application where I have to modify the contents of proxied html
> documents. For instance, replace the "</body>" tag in HTML documents with
> a footer/nav bar.
>
> So I download Jigsaw and tried something very simple. I took GZIPFilter,
> altered it so that rather than compressing a stream, it read it line by line
> running regular expressions on it, and writing the results to the output
> pipe.
>
> I then attached it to the /User/ frame, and also to the RelNotes.html resource
> in the admin interface, and it works!
>
> Next, I tried attaching it to the ProxyFrame, but I get some kind of warning
> message spit to the standard out, and although visually it succeeds,
> when I restart the server, my filter has disappeared.
>
> I also edited the "properties" section, and deleted CacheFilter, and added
> my filter.  However, no matter what I do, "CacheFilter" reappears and mine
> disappears.

Did you commit and save your changes before shutdown? [1][2]

>
>
> My hunch is that initialization code for ProxyFrame or ForwardFrame has these
> hardcoded, but I can't find out where.
>
> Can anyway tell me how I can add a outgoing filter to the Proxy?  I'm at the
> end of my rope, and the next thing I'm going to do if I can't find out
> an elegant solution is to hack my filter directly into CacheFilter's
> outgoingFilter function. :(
>
> -Ray

[1] http://www.w3.org/Jigsaw/Doc/User/AdminTools.html#stop-jigsaw
[2] http://www.w3.org/Jigsaw/Doc/User/attributes.html

Regards, Benoit.

--
- Benoît Mahé -------------------------------------------------------
                      World Wide Web Consortium (W3C)
                    Architecture domain - Jigsaw Team

  http://www.w3.org/People/Mahe - bmahe@w3.org - +33.4.92.38.79.89
---------------------------------------------------------------------
Received on Monday, 8 February 1999 04:09:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:28 GMT