tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: Logging properties of attributes in the HttpSession
Date Tue, 04 Oct 2011 15:54:57 GMT
Hash: SHA1


On 10/3/2011 4:16 PM, Konstantin Kolinko wrote:
> 2011/10/3 Christopher Schultz <>:
>> On 9/30/2011 2:18 PM, Konstantin Kolinko wrote:
>>> 2011/9/30 Christopher Schultz <>:
>>>> The OP should be able to put the Filter into the <Context>
>>>> in such a way that the Filter wraps the AccessLogValve, no?
>>> 1. You cannot put a Filter into Context.
>> Mmm. Why do I always think that you can do this sort of thing?
>> Maybe I'll log an enhancement that allows us to do this: it seems
>> reasonable to allow Filters to be interspersed with Valves,
>> especially for things like this.
> This: 
> worries me a bit more.

Allowing <Valve> and <Filter> to be arbitrarily ordered shouldn't
affect that bug, which has to do with where the default filters are
inserted into the valve/filter chain. That problem would still exist
and, IMO, not get any worse by allowing <Filter> to appear anywhere a
<Valve> can appear.

>>> 3. A Valve can modify a Request, while Filter cannot.
>> Both Filter and Valve can wrap the request, which can be seen as 
>> "modifying" it, though it's not really modifying it.
> Valve has access to o.a.c.connector.Request object, which is
> modifiable.

Right: it is directly modifiable instead of... maskable :)

- -chris
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla -


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message