Top "Resttemplate" questions

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

How to add message converter to restTemplate in xml configuration

I am using restTemplate for consuming json data from remote server, and then parsing the json in my java objects …

rest jackson resttemplate spring-json
RestTemplate can't fetch JSONObject

I can't fetch JSONObject directly, this code works: RestTemplate restTemplate = new RestTemplate(); String str = restTemplate.getForObject("http://127.0.0.1:8888/books", String.class); …

spring resttemplate spring-restcontroller spring-rest
Mapping RestTemplate response to java Object

I am using RestTemplate get data from remote rest service and my code is like this. ResponseEntity<List<…

spring-boot resttemplate jackson2
restTemplate ResourceAccessException on server reboot

I'm using restTemplate (from the spring android framework) on my android application to contact a rest server with post, i'm …

android resttemplate spring-android
How do I implement a PATCH executed via RestTemplate?

I am coding JUnit tests, calling my application via RestTemplate. I have successfully implemented GETs, POSTs, and PUTs, but can …

java rest junit resttemplate http-patch
How to send x-www-form-urlencoded in a body of POST request using android annotations and resttemplate

my interface looks as follows: @Rest(rootUrl = "https://myurl.com", converters = { GsonHttpMessageConverter.class }) public interface CommunicatonInterface { @Get("/tables/login") public …

java android spring resttemplate android-annotations
RestTemplate basic or digest Authentication with the current httpclient (4.x)

I'm trying to do Digest mostly (or Basic) Authentication using RestTemplate and httpclient (4.x). Since I couldn't find any relevant …

spring restful-authentication http-authentication basic-authentication resttemplate
Send multipart file via RestTemplate

i have some problem about send image file (multipart) using android via Spring restTemplate. here is my controller on server : @…

android spring rest resttemplate spring-android
How to inject RestTemplate

I am not using xml configurations to define beans. Instead using component scanning and autowire to define and inject dependencies. …

spring dependency-injection autowired resttemplate spring-bean
SpringBoot @WebMvcTest, autowiring RestTemplateBuilder

I've got a problem while testing a Spring Controller. I'm using the annotation @WebMvcTest in my test class. When I …

java spring spring-boot junit resttemplate