Top "Resttemplate" questions

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

REST POST works correctly with POSTMAN but exception when using Spring RestTemplate

I am writing a Rest client to post JSON data using Spring RestTemplate. Using POSTMAN and following JSON data in …

java spring rest resttemplate spring-rest
RestTemplate GET request with request params

I have to call a REST webservice and I am planning to use RestTemplate. I looked at examples on how …

parameters get request rest-client resttemplate
Retry java RestTemplate HTTP request if host offline

Hi I'm using the spring RestTemplate for calling a REST API. The API can be very slow or even offline. …

java spring apache-httpclient-4.x resttemplate
RestTemplate - Handling response headers/body in Exceptions (RestClientException, HttpStatusCodeException)

In my restful webservice, in case of bad request (5xx) or 4xx respose codes, I write a custom header "x-app-err-id" …

response resttemplate
Spring RestTemplate - async vs sync restTemplate

I wrote the following code to test the performance of both the sync RestTemplate and AsyncRestTemplate. I just ran it …

java spring asynchronous resttemplate
Download Large file from server using REST template Java Spring MVC

I have a REST service which sends me a large ISO file ,there are no issues in the REST service . …

java spring rest resttemplate
WebClient vs RestTemplate

As per spring 5: WebClient is an interface representing the main entry point for performing web requests. It has been created …

spring reactive-programming resttemplate web-client
How do I retrieve HTTP status code and response body when an RestClientException is thrown?

The methods of RestTemplate such as postForEntity() throw RestClientException. I would like to extract the HTTP status code and response …

java resttemplate
How to send a getForObject request with parameters Spring MVC

I have a method on the Server side which gives me information about an specific name registered in my database. …

android rest spring-mvc get resttemplate
How to write mockito junit for Resttemplate exchange method

How to write mockito junit for the method below: @Autowired RestTemplate restTemplate; ResponseEntity<?> execute(final String url, HttpMethod …

spring junit mockito resttemplate