1. Please explain RestTemplate stackoverflow.comI have a class
What is RestTemplate used for?
|
2. Spring RestTemplate and XMLStream use with List of Objects stackoverflow.comI am trying to use Spring RestTemplate to retrieve a List of Employee records, such as:
public List getEmployeesByFirstName(String firstName) { |
3. How to post byte array via RestTemplate stackoverflow.comGoal: Post Image using RestTemplate Currently using a variation of this
Are there any alternatives? Is POSTing a JSON that contains a ... |
4. Using RestTemplate and Error Handling Code Design stackoverflow.comI have a service class that can be autowired and used as making rest calls. My class is as follows:
|
5. Generics with Spring RESTTemplate stackoverflow.comI have a class like that:
|
6. Spring RestTemplate Equivalent stackoverflow.comI am using Spring Resttemplate and have an issue about generics: Generics with Spring RESTTemplate I want to look at other equivalent libraries that I can handle that situation. Are there ... |
7. Setting Content-Length header when performing postForLocation on RestTemplate forum.springsource.orgI'm sure this probably is not hard, but I can't think of it. I need to post a form using RestTemplate postForLocation and I need to provide some HTTP headers. However ... |
8. RestTemplate against non-conforming service forum.springsource.orgRestTemplate against non-conforming service Hello, I need to integrate against a service that consumes and produces JSON, but with the following peculiarities : 1) it only accepts POST methods, the JSON ... |
9. newb question: how to use extension methods with RestTemplate forum.springsource.orgHi, maybe I'm missing something obvious, but... how would I do a PROPPFIND or a PATCH request with RestTemplate (given that it expects the HttpMethod enum?). Best regards, Julian |
10. RestTemplate I/O Errors and HttpClient forum.springsource.orgRestTemplate I/O Errors and HttpClient I working on a large middleware application that users RestTemplate to handle RESTful calls to about 40 different services. We are using HttpClient 3.1 as the ... |
11. Exception in RestTemplate forum.springsource.orgHi, I opend the following issue: SPR-7908 one month ago, but nothing happened so far. Can someone please take a look at it? It would be nice if it can be ... |
12. Disabling followredirect in resttemplate forum.springsource.orgDisabling followredirect in resttemplate Hello Folks, We are calling a Rest WebService thru RestTemplate which returns a 302 response. We want to catch the 302 response and not follow the redirect/ ... |
13. Having difficulty finding culprit of ResourceAccessException in RestTemplate forum.springsource.orgHaving difficulty finding culprit of ResourceAccessException in RestTemplate I'm working on an Instagram binding for Spring Social over at https://github.com/mattupstate/spring-social I'm getting a ResourceAccessException during my tests and just can't understand ... |
14. releaseConnection of MultiThreadedHttpConnectionManager when used with RestTemplate forum.springsource.org |
15. RestTemplate ignoring charset defined by HttpMessageConverter forum.springsource.orgRestTemplate ignoring charset defined by HttpMessageConverter Hi all, I have problem with HttpMessageConverter and charsets here is my converter: Code: public class XMLStringHttpMessageConverter extends AbstractHttpMessageConverter |
16. Ensuring RestTemplate is configured the same as ContentNegotiatingViewResolver forum.springsource.orgEnsuring RestTemplate is configured the same as ContentNegotiatingViewResolver I seem to be getting different representations of my objects coming back from the ContentNegotiatingViewResolver when sending JSON representations. When the RestTemplate sends ... |
17. Testing RestTemplate offline forum.springsource.org |
18. RestTemplate and POST forum.springsource.orgRestTemplate and POST Hi, I am trying to invoke POST routine on a RESTful service using RestTemplate. Its not working. Below is the code: RestTemplate rt = new RestTemplate(); URI uri ... |
19. How to force the use of a specific Accept header with RestTemplate ? forum.springsource.orgHow to force the use of a specific Accept header with RestTemplate ? I want to communicate with a Rest service that can produce both application/xml and application/json using the RestTemplate. ... |
20. Spring restTemplate and application/xml;charset=UTF-8 forum.springsource.orgSpring restTemplate and application/xml;charset=UTF-8 Hi, I am using 3.0.6.RELEASE and trying to get the XML marshaller to run but I can't seem to get a match to the HTTP header. For ... |
21. Custom Exceptions handling using RestTemplate forum.springsource.orgCustom Exceptions handling using RestTemplate Hi, I want my RESTful webservices to throw Exceptions. On server I'm using CXF to do all RS-311 stuff, including catching my exceptions and putting exception ... |
22. File upload issue with Spring RestTemplate forum.springsource.orgFile upload issue with Spring RestTemplate Hi, I found a weird thing when uploading files with Spring RestTemplate in 3.1.M2 that, the FileSystemResource or ClasspathResource will make the upload very slow ... |
23. 3.1 RestTemplate headers not sent when bufferRequestBody is false forum.springsource.org3.1 RestTemplate headers not sent when bufferRequestBody is false G'day, mates. I'm using Spring Core 3.1.0.RC1 on Java 6. I'm trying to send custom http headers when invoking RestTemplate methods using ... |
24. RestTemplate postForObject & UTF-8 Encoding forum.springsource.orgHi I am using the RestTemplate.postForObject method to send an object for an entity which includes characters such as ''. The '' sign is being converted into '\xA32' when the request ... |
25. RestTemplate Can Not Convert Generic Types forum.springsource.orgCode: public class Wrapper |
26. RestTemplate getForObject method forum.springsource.orgRestTemplate getForObject method I have a very simple example here taken directly from the javadocs for Spring 3.0 M2 RestTemplate http://static.springsource.org/sprin...tTemplate.html Code: import org.springframework.web.client.RestTemplate; import java.util.*; import java.net.*; public class RestClient ... |
27. [Spring 3.0.0.M2] RestTemplate forum.springsource.orghi together, sorry for my may naive question, but currently it's not clear to me if and how data binding of returned (myTemplate.getForObject(...)) xml is supported by the template itself. can ... |
28. Is getForObject in RestTemplate threadsafe? forum.springsource.orgI think it is threadsafe since I don't see it shared the data passed by parameters. But I need assurance. public |
29. Sending POST parameters with RestTemplate requests forum.springsource.orgI'm trying out Spring 3.0's RestTemplate. I'm trying to send POST parameters along with my request, but can't figure out how to do that. Judging from the documentation, the FormHttpMessageConverter can: ... |
30. How can I set the Content-Type of the RestTemplate forum.springsource.orghello all How can I set the Content-Type of the RestTemplate? when I use RestTemplate to get or post messages ,I receive messy code(should be some chinese), and I check the ... |
31. RestTemplate PUT void? forum.springsource.orgObservation on RestTemplate - It's otherwise quite nice, but finding that the PUT support is limited due to the void return type: Code: public void put(String url, Object request, String... urlVariables) ... |
32. RestTemplate, not marked as ignorable forum.springsource.orgFeb 1st, 2010, 09:58 AM #1 jpuzzler View Profile View Forum Posts Private Message Visit Homepage Junior Member Join Date Aug 2009 Location Paris Posts 2 RestTemplate, not marked as ignorable ... |
33. How to return "Location" for RestTemplate.postForLocation: forum.springsource.orgHow to return "Location" for RestTemplate.postForLocation: Here is the definition of RestTemplate.postForLocation: URI org.springframework.web.client.RestTemplate.postFo rLocation(String url, Object request, Object... urlVariables) throws RestClientException Create a new resource by POSTing the given object ... |
34. Escaping '&' in args of restTemplate.getForObject forum.springsource.orgEscaping '&' in args of restTemplate.getForObject Hi there, I'm having trouble when I use '&' in a args parameter for restTemplate.getForObject. The RestTemplate seems to think it is another parameter in ... |
35. RestTemplate does not work with spring mvc-ajax sample forum.springsource.orgI have had problems using RestTemplate against the spring mvc-ajax sample. My source: Code: RestTemplate rest = new RestTemplate(); AvailabilityStatus l1 = rest.getForObject( "http://localhost:8080/org.springframework.samples.mvc.ajax-1.0.0-SNAPSHOT/account/availability?name={name}", AvailabilityStatus.class, "X"); The exception: Code: Exception in ... |
36. Example of using RestTemplate? forum.springsource.orgHello, It was mentioned earlier on the forum that the RestTemplate would be supported. Is there any documentation (or an example) that might illustrate how this might be configured? Thanks! |
37. Got ResourceAccessException when I am using restTemplate forum.springsource.orgGot ResourceAccessException when I am using restTemplate I download the sample code from Ajren's blog, but got error when try to connect flickr while this URL is working by copying to ... |
38. RestTemplate sample FlickrClient - error forum.springsource.orgI downloaded the sample code from Ajren's blog on using RestTemplate for a FlickrClient. I got compile error right away on BufferedImageHttpMessageConverter.java: The type BufferedImageHttpMessageConverter must implement the inherited abstract method ... |
39. RestTemplate client - how to bring up a view from WS forum.springsource.orgRestTemplate client - how to bring up a view from WS My RestTemplate client needs to "bring up" a HTTP Request Form (for input) created by the Web Service, enters data ... |
40. Getting InputStream with RestTemplate forum.springsource.org |
41. Turn off variable replacement in RestTemplate forum.springsource.orgTurn off variable replacement in RestTemplate Hello, I am trying to use the RestTemplate.exchange() method to make a GET request to the following URL: http://server.com/app/doSomething?param={myValue} Where "{myValue}" is the actual value ... |
42. GET method on RestTemplate.exchange with a Body forum.springsource.orgGET method on RestTemplate.exchange with a Body Hello I'm having problems to pass data in the body of a GET request. Seems like resttemplate ignores the body. If I switch the ... |
43. Server-side exception and RestTemplate forum.springsource.orgServer-side exception and RestTemplate I'm using RestTemplate on the client and Spring MVC/Jackson on the server-side to stream JSON to the client. However I'm wondering how I can inform the client ... |
44. RESTTemplate / Message Converter: text/plain to Source forum.springsource.orgI have a web service that returns an XML document and I'd like the RESTTemplate to convert the content of the document to javax.xml.transform.Source. Unfortunately, the web service encodes the document ... |
45. spring restTemplate POST parameters from complex object forum.springsource.orgspring restTemplate POST parameters from complex object I'm attempting to test our REST service using restTemplate using the postForObject(...) method. I need to send POST parameters, but my request insists on ... |
46. Boolean return type not working with RestTemplate forum.springsource.orgHi All, I am using Spring 3.0.3 RestTemplate for making RESTfull call to service which is deployed in servicemix ESB. Service method returns boolean value, and am unable to receive this ... |
47. How to RestTemplate Post MultiPart File forum.springsource.orgCode: URI postUpload = new URI("http://localhost:8080/yoostar/admin/1.0/UploadTestFile"); ... MultiValueMap |
48. How to use RestTemplate post value object with customized headers? forum.springsource.orgHi every one, Both exchange() and postForObject() methods only take one parameter for request data, however it can be either http header or supported value object, my question is how if ... |
49. How to use RestTemplate post xml object with customized headers? forum.springsource.orgHow to use RestTemplate post xml object with customized headers? As nobody answer me in "web service" forum, I have to post it again in here. ------------------ Hi every one, Both ... |