[prev in list] [next in list] [prev in thread] [next in thread]
List: muffin
Subject: Re: saving state between request and reply (Was: patch)
From: "Mark R. Boyns" <boyns () doit ! org>
Date: 2000-05-12 14:41:34
[Download RAW message or body]
safonov@cs.umn.edu writes:
> a few weeks ago, a patch for Handler.java allowing sharing state between
> an HTTP request and its reply was posted. Mark suggested creating a filter
> that implements both RequestFilter AND ReplyFilter. Does it mean that I
> can save request information in a member of my filter object in
> filter(Request) method, and when method filter(Reply) is called, the data
> member contains the request for this reply? Or, in other words, is it
> guaranteed that the same filter instance is used to filter a request and
> its corresponding reply? It was not clear to me from looking at the
> Handler code.
Yes, that is guaranteed. Filters can also use their factory for more
persistent storage.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic