I am working on a project in which I need to make a HTTP URL call to my server which is running Restful Service
which returns back the response as a JSON String
I have my multi-thread-safe singleton REST template wired like this in spring:
Please note I'm using an OAuthRestTemplate
, and myResource
refers to the oauth resource stuff which I've omitted as it's not relevant. Instead of an OAuthRestTemplate
you could just as easily use a org.springframework.web.client.RestTemplate
http://docs.spring.io/spring/docs/3.2.4.RELEASE/javadoc-api/org/springframework/web/client/RestTemplate.html