• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

URL string from ClientHttpResponse

 
sri don
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using RestTemplate for calling webservices and calling get() and I added Errorhandler for this template.

How ever , I wanted to get the URL in the handle error method for logging and supplying this information to monitor services,

is there any way that I can get this data ie from ClientHttpResponse , at the moment I can see only this object in the handleError method.


Regards
Srinivasa
 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nope. I suppose if you are also coding the webservice that you are calling you can set a custom header containing the request URL on its response. You can access the response headers from ClientHttpResponse.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic