Top "Resttemplate" questions

Use this tag for Spring's RestTemplate, a class for client-side HTTP communications and RESTful principles enforcement.

How to parse the response body in Java, when the HTTP request has return status 401

I am consuming a RESTful JSON API using Spring's RestTemplate and Jackson. In some cases we may receive a Status 401 (…

java spring api jackson resttemplate
Why RestTemplate GET response is in JSON when should be in XML?

I struggled with an extrange spring behavior using RestTemplate (org.springframework.web.client.RestTemplate) without success. I use in my …

java spring rest resttemplate
Spring 4.0.0 basic authentication with RestTemplate

I am currently working on integration of a third party application with our local reporting system. I would like to …

java spring apache basic-authentication resttemplate
RestTemplate PATCH request

I have the following definition for PersonDTO: public class PersonDTO { private String id private String firstName; private String lastName; private …

json spring resttemplate
Getting InputStream with RestTemplate

I am using URL class to read an InputStream from it. Is there any way I can use RestTemplate for …

java inputstream resttemplate
Get STRING response from restTemplate.put

I'm having a problem using Spring restTemplate. For now i'm sending a PUT request for a restful service and that …

java spring rest resttemplate
How can we make asynchronous REST api call in Java?

I am using Spring RestTemplate and want to make a call to another service that doesn't return any response body. …

java spring rest resttemplate asyncresttemplate
How do I read the response header from RestTemplate?

I am posting information to a web service using RestTemplate.postForObject. Besides the result string I need the information in …

java spring resttemplate
Springs RestTemplate default connection pool

Just wondering if RestTemplate out of the box uses connection pooling or does it simply establish a new connection each …

spring connection-pooling resttemplate
How to call HTTPS restful web services using Spring RestTemplate

I am using Tomcat7, Spring framework for ReST web services. I am trying to call an https web service using …

java spring rest resttemplate