简体   繁体   中英

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.

您可以通过注册自定义请求处理程序来完成此操作 ,在这里您可以访问请求/响应

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM