Re: Can you add a filter to ProxyFrame?

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 UTC