I' need to call different endpoint located on different server, i try to change value of base url of my rest services.
but i found only this method
RestClient.create(MyService.class, otherServiceBaseUrl,
myCallback,
200).doStaf() ;
Any suggestion to more elegant way for setup the base url for all services in my MyService class ?
I found this solution. I create a abstract class DinamicCaller.
I create a Concrete Class
On my class I inject the concrete class
And I use it
Is ugly but work.