Hi,

I just checked the code of camel-restlet, the CamelRestletRequest and 
CamelRestletResponse are passed from Restlet. Camel can do nothing about it.
My suggestion is you can try write a simple restlet application to see if you 
can get the clientAddress with the setting of useForwardedForHeader there.

--  
Willem Jiang

Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem



On October 18, 2014 at 1:08:15 PM, sandp ([email protected]) wrote:
>  
> Hi,
> I'm trying to log the client address from a request. I set the
> useForwardedForHeader option to true on the RestletComponent.
>  
> I see that the CamelRestletRequest carries a HttpExchangeCall object that
> contains the clientAddress, but that's always null.
>  
> CamelRestletResponse carries a HttpExchangeCall object that contains the
> serverAddress, but that's always null too.
>  
> Appreciate help on this.
>  
>  
>  
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Camel-Restlet-2-14-0-Client-Address-from-Request-tp5757736.html
>   
> Sent from the Camel - Users mailing list archive at Nabble.com.
>  

Reply via email to