Hi You should have access to the Restlet request from a Camel header. For example from a Camel processor you can do this code:
public void process(Exchange exchange) { Request request = exchange.getIn().getHeader(RestletConstants.RESTLET_REQUEST, Request.class); .. } On Fri, Feb 14, 2014 at 12:04 PM, Ranabroto <ranabroto.gh...@globalcharge.com> wrote: > 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. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen Make your Camel applications look hawt, try: http://hawt.io