Sophie
Sophie

Reputation: 1600

how to get client's ip from jax-rs with restlet

How can i retrieve client's ip (the remote ip) of the http request? I'm using JAX-RS with Restlet and not using servlets. Thanks.

Upvotes: 1

Views: 454

Answers (1)

Jigar Joshi
Jigar Joshi

Reputation: 240898

You can do it by registering a custom request handler, here you will have access to request/response

Upvotes: 1

Related Questions