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

转发: interception and redirect

From: Qiang Lv <qiang@suda.edu.cn>
Date: Wed, 30 Dec 1998 20:11:05 -0500 (EST)
Message-ID: <00b601be345a$b38cc240$0b8cc3ca@lenny.zhhz.suda.edu.cn>
To: <www-jigsaw@w3.org>

-----Original Message-----
发件人: Qiang Lv <qiang@suda.edu.cn>
收件人: bmahe@w3.org <bmahe@w3.org>
日期: 1998年12月22日 10:10
主题: interception and redirect


>Hi,
>
>I configured Jigsaw as a proxy server successfully. I want to write a
filter
>to support an index engine, which means to record every Request and issue
it
>later as required randomly. My Jigsaw is version2beta3. Here is the
problem:
>
>According to the Doc#InternalDesign of Jigsaw, the control flow is like
>this:
>1. lookup every posible resources;
>2. call ingoingFilter;
>3. call perform on the successful result of Step 1.
>4. call outgoingFilter;
>What I am wondering is even if I changed some values of Reuest in
>ingoingFilter, it will not effact the Step 3. Am I right?
>Even more, I call super.perform(modified Request) in ingoingFilter, and
>expect to return a non-null Reply. But I failed. Here is my samples on the
>Jigsaw local site:
>In ingoingFilter, I wrote:
>// sample code
>if (Request.getURLPath().equals("/Doc/User/Installation.html"))
>{
>    Request.setURLPath("/Doc/");
>}
>return null;
>// end sample code
>With the above code, I suppose to get the page for URL:/Doc/ when I click
>the URL:/Doc/User/Installation.html. But I still get the page for
>URL:/Doc/User/Installation.html.
>In another case, I wrote:
>// sample code
>if (Request.getURLPath().equals("/Doc/User/Installation.html"))
>{
>    Request.setURLPath("/Doc/");
>    return super.perform(Request);
>}
>return null;
>// end sample code
>But the fact is super.perform(Request) still return null to me.
>
>Thanks in advance,
>Qiang
>
>
>
Received on Thursday, 31 December 1998 08:39:02 GMT

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