[
https://issues.apache.org/jira/browse/CLEREZZA-417?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12997504#comment-12997504
]
Reto Bachmann-Gmür commented on CLEREZZA-417:
---------------------------------------------
The above method works for servlet based jax-rs implementations, the one
provided by clerezza is not servlet based.
The best approach would be to open an issue against jsr-311 for the jax-rs spec
to include a method to get the remote address.
> Retrieve ip address of requesting client
> ----------------------------------------
>
> Key: CLEREZZA-417
> URL: https://issues.apache.org/jira/browse/CLEREZZA-417
> Project: Clerezza
> Issue Type: Question
> Reporter: Oliver Strässer
> Priority: Critical
>
> Hi @ all
> A little question about retrieving ip addresses in an jax rs framework.
> I read, that I could retrieve the ip address of the requesting client with:
> @Context HttpServletRequest req;
> and the String ip = req.getRemoteAddr()
> But the req object is everytime null.
> is there a mistake or misunderstanding on my side?
> cheers
> oli
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira