tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francis Galiegue <>
Subject Make the InetAddress object available via ServletRequest?
Date Sun, 09 Oct 2011 14:57:03 GMT

I have my CIDR matching valve/filter ready (still struggling to write
unit tests, but it works in real-world situations), and there is
something I find quite unoptimized: you have getRemoteHost() and
getRemoteAddr() to get the remote host name and IP addresses as
strings, but why can't you get hold of the InetAddress object

It would be much faster to do so... In my valve and filter, I have to
.getRemoteAddr() and create an InetAddress object out of the string...

Francis Galiegue,
"It seems obvious [...] that at least some 'business intelligence'
tools invest so much intelligence on the business side that they have
nothing left for generating SQL queries" (St├ęphane Faroult, in "The
Art of SQL", ISBN 0-596-00894-5)

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

View raw message