File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

calling multiple implementations of a rest service based on the request header in spring

 
radha madaparthy
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to using http header to determine the implementation to invoke during runtime in my rest service. I have a situation to support multiple versions of a same service within my code. Some classess have been updated based on the new design but the older implementation has a different logic in those classes. I now want to support the old code as well as new code as deploy the service as one artifact. I am planning to introduce a new implemenattion classs which implements same service and then copy the implemenattion for the down stream classess to support the old version. Now can i use spring to do the routing to the right implemenation based on the request header value? Or are there any good alternatives for this situation?

Thanks a lot for the help
 
Joe Ess
Bartender
Posts: 9214
9
Linux Mac OS X Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does this have anything to do with Struts? If not, I'll move it to the Spring forum for you.
 
radha madaparthy
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. Can you please move this to spring forums
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic