Top "Resttemplate" questions

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

RestTemplate and Cookie

I need to send an HTTP cookie, I'm using RestTemplate: HttpHeaders requestHeaders = new HttpHeaders(); requestHeaders.add("Cookie", "SERVERID=c52"); HttpEntity …

spring resttemplate
RestTemplate with Basic Auth in Spring 3.1

We were using RestTemplate with xml configuration in Spring 3.0 and it was working perfectly fine. <bean id="httpClient" class="…

java spring restful-authentication resttemplate apache-httpclient-4.x
SSLHandshakeException: Received fatal alert: handshake_failure when setting ciphers on tomcat 7 server

I have a Tomcat7 web-server which I tried to configure to accept secure connections by adding this connector to the …

ssl tomcat7 encryption resttemplate sslhandshakeexception
RestTemplate to NOT escape url

I'm using Spring RestTemplate successfully like this: String url = "http://example.com/path/to/my/thing/{parameter}"; ResponseEntity<MyClass&…

java spring resttemplate
Force Spring RestTemplate to use XmlConverter

We are integrating with a third party that is sending xml with the content-type header as text/html. We were …

java xml spring resttemplate
restTemplate.getforobject(),exchange(),entity() .is there any pros and cons for each method?

i have used both entity(),exchange(),getforObject(), and all seems to be working fine . but not sure which is the …

spring resttemplate
How to add base URI in RestTemplate

Is there any other way to initialize RestTemplate with base URI other than extending RestTemplate and overriding the execute method.…

spring resttemplate
RestTemplate should be static globally declared?

I am using Java Callable Future in my code. Below is my main code which uses the future and callables …

java multithreading resttemplate callable
Best practices on rest client using spring RestTemplate

I have read some tutorials about implementing REST client in java web application that use SPRING to manage beans. Every …

java spring rest resttemplate spring-rest
How to parse gzip encoded response with RestTemplate in Spring-Web

After I modified Consuming a RESTful Web Service example to call get users by id from api.stackexchange.com I …

spring spring-mvc resttemplate stackexchange-api