-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 LE,
On 1/13/2010 9:23 AM, LE wrote: > I am able to write my own "AccessLogValve Class" but i have no idea > how to get the "first byte" of the response. You have to wrap the response in an object which can record the time of the first byte being written to the output stream (or writer). If you want to implement this as a Filter, the HttpServletResponseWrapper object is a good starting place. If you must use a Valve, Tomcat provides no such wrapped class for you: you'll have to use your own. Fortunately, some kind soul has written such a class and posted it into Tomcat's bug tracker: https://issues.apache.org/bugzilla/show_bug.cgi?id=45014 - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAktN6ikACgkQ9CaO5/Lv0PBoOwCgwKDk2KK1KtvUJXNUoHjNowy0 KlUAn2rR14AN0N1b0hgRUtDxbUv7NVQ4 =Jexl -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org