camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ranabroto <ranabroto.gh...@globalcharge.com>
Subject Re: Retrieve Caller Ip Address
Date Fri, 14 Feb 2014 11:04:06 GMT
Hello Claus Ibsen
Thank you so much for your reply sir :)

I have looked into reslet documentation and I found out they have the client
info, 
They have 'Request' class which got a method getClientInfo() returns an
object of type 'ClientInfo' and 'ClientInfo' class has got a method
'getAddress()' which returns clients ip address.

so it should look like 

request.getClientInfo().getAddress(); (which should return the clients ip
address)

Here we go for their(reslet) api spec(find the getClientInfo() method)
http://restlet.org/learn/javadocs/2.1/jse/api/org/restlet/Request.html

Find the  getAddress() method
http://restlet.org/learn/javadocs/2.1/jse/api/org/restlet/data/ClientInfo.html

Thanks in advance 



--
View this message in context: http://camel.465427.n5.nabble.com/Retrieve-Caller-Ip-Address-Camel-Reslet-tp5747272p5747311.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message