How to get headers via Openfire API

I’m writing some plugin with custom iq’s, and I need to get my clients’ http headers (they are connected by BOSH).

How can I do this using Openfire API?

The thing is that I need to provide IP address and geo location of visitors (this information is stored in X-Real-IP header).