tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Logging properties of attributes in the HttpSession
Date Mon, 03 Oct 2011 16:50:17 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Konstantin,

On 9/30/2011 2:18 PM, Konstantin Kolinko wrote:
> 2011/9/30 Christopher Schultz <chris@christopherschultz.net>:
>> 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.

> 2. AccessLogValve in Tomcat 7 cannot be wrapped. It does not act as
> a true "valve", but more as a marker interface.
> 
> 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.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk6J58kACgkQ9CaO5/Lv0PAQpQCZAUxprioYXm5MQsChC4seTlco
+2IAnjnMOjLLPC6qTdFyFfVh6lwOlyKw
=0dgS
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message