This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.
thanks for the advice. I found out another solution that seems to work:
RestTemplate template = new RestTemplateWrapper(requestFactory);
URI url = new URI("URI");
HttpEntity<Object> entity = new HttpEntity<Object>(MultiValueMap headerinfo);
ResponseEntity<String> result = template.exchange(url, HttpMethod.GET, entity, String.class);