-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Teppei,
On 4/1/12 5:15 AM, Teppei Yamada wrote: > I wanted to write something similar to apache httpd's mod_headers > so I read through Tomcat7.0.26 source code. Then I realized that > that could not be achieved without modifying coyote's > Abstract(Http11|Ajp)Processor.prepareResponse(). That can never be > done by Valve because some HTTP headers are added just in (or > SessionCookie is right before) prepareResponse function and it > immediately writes headers to OutputBuffer and set committed. Most headers in Tomcat are added by components other than the Processor and/or Connector. If you insert a Valve into the valve chain, you can often intercept and/or re-write the headers at will. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk96DWcACgkQ9CaO5/Lv0PAnlQCglCHz3FTA1Iutre/55T783Sbs VQEAnR5chWgd7EUT3BoMWHc1r1Vz4kkT =ocz9 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org