tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <knst.koli...@gmail.com>
Subject Re: Getting hold of an IP address
Date Wed, 08 Dec 2010 10:04:30 GMT
2010/12/8 Lyallex <lyallex@gmail.com>:
> My application contains instances of
> javax.servlet.http.HttpSessionListener
> and
> javax.servlet.Filter
> (among other classes of course)
>
> My question is, is it possible to obtain the originating IP address of
> a request from either of these classes
>

ServletRequest.getRemoteAddr()

(In a Filter.  There is no request in HttpSessionListener).

Best regards,
Konstantin Kolinko

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


Mime
View raw message