<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: REST in Spring 3: RestTemplate</title>
	<atom:link href="http://blog.springsource.com/2009/03/27/rest-in-spring-3-resttemplate/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.springsource.com/2009/03/27/rest-in-spring-3-resttemplate/</link>
	<description>The voice of SpringSource</description>
	<lastBuildDate>Fri, 19 Mar 2010 05:36:47 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: JUnit Tests for Spring 3 Rest Services &#171; Ralf Schäftlein&#8217;s Blog</title>
		<link>http://blog.springsource.com/2009/03/27/rest-in-spring-3-resttemplate/comment-page-1/#comment-171616</link>
		<dc:creator>JUnit Tests for Spring 3 Rest Services &#171; Ralf Schäftlein&#8217;s Blog</dc:creator>
		<pubDate>Fri, 12 Mar 2010 08:35:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.springsource.com/?p=1469#comment-171616</guid>
		<description>[...] MVC part of the Framework. Rest Service are defined as Controller and can be tested with the new Resttemplate. In this little sample project is Spring 3 combined with JUnit 4, Maven, Hibernate 3.2, Jetty, [...]</description>
		<content:encoded><![CDATA[<p>[...] MVC part of the Framework. Rest Service are defined as Controller and can be tested with the new Resttemplate. In this little sample project is Spring 3 combined with JUnit 4, Maven, Hibernate 3.2, Jetty, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Java Spring 3 RESTful Web Service &#171; MINSIKZZANG IN PARIS</title>
		<link>http://blog.springsource.com/2009/03/27/rest-in-spring-3-resttemplate/comment-page-1/#comment-171041</link>
		<dc:creator>Java Spring 3 RESTful Web Service &#171; MINSIKZZANG IN PARIS</dc:creator>
		<pubDate>Tue, 19 Jan 2010 07:00:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.springsource.com/?p=1469#comment-171041</guid>
		<description>[...] http://blog.springsource.com/2009/03/27/rest-in-spring-3-resttemplate/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://blog.springsource.com/2009/03/27/rest-in-spring-3-resttemplate/" rel="nofollow">http://blog.springsource.com/2009/03/27/rest-in-spring-3-resttemplate/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ken McCracken</title>
		<link>http://blog.springsource.com/2009/03/27/rest-in-spring-3-resttemplate/comment-page-1/#comment-170848</link>
		<dc:creator>Ken McCracken</dc:creator>
		<pubDate>Tue, 05 Jan 2010 14:58:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.springsource.com/?p=1469#comment-170848</guid>
		<description>I was looking at http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/web/client/RestTemplate.html#RestTemplate() and wondering why the &quot;default settings&quot; are not documented.  I know I can look in the source code to see which implementation is currently used, but am concerned since it isn&#039;t documented that it might change??  Is there any reason not to specify a concrete ClientHttpRequestFactory implmentation as default in the Javadocs?</description>
		<content:encoded><![CDATA[<p>I was looking at <a href="http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/web/client/RestTemplate.html#RestTemplate()" rel="nofollow">http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/web/client/RestTemplate.html#RestTemplate()</a> and wondering why the &#034;default settings&#034; are not documented.  I know I can look in the source code to see which implementation is currently used, but am concerned since it isn&#039;t documented that it might change??  Is there any reason not to specify a concrete ClientHttpRequestFactory implmentation as default in the Javadocs?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Grzegorz Błaszczyk</title>
		<link>http://blog.springsource.com/2009/03/27/rest-in-spring-3-resttemplate/comment-page-1/#comment-170577</link>
		<dc:creator>Grzegorz Błaszczyk</dc:creator>
		<pubDate>Sun, 20 Dec 2009 22:08:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.springsource.com/?p=1469#comment-170577</guid>
		<description>I corrected the file for downloading and added maven-dependency-plugin for easier java process launching.</description>
		<content:encoded><![CDATA[<p>I corrected the file for downloading and added maven-dependency-plugin for easier java process launching.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Grzegorz Błaszczyk</title>
		<link>http://blog.springsource.com/2009/03/27/rest-in-spring-3-resttemplate/comment-page-1/#comment-170576</link>
		<dc:creator>Grzegorz Błaszczyk</dc:creator>
		<pubDate>Sun, 20 Dec 2009 22:01:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.springsource.com/?p=1469#comment-170576</guid>
		<description>I tried to compile a project that you provided as an example but it did not compile (interface had unimplemented methods). So I corrected it and added maven-dependency-plugin to gather all dependencies and copy to one place (i.e. target/lib) so the start of a java process will be as smooth as possible. 

zip uploaded on filefactory:
http://www.filefactory.com/file/a127bhd/n/spring3-resttemplate-20091220.zip
link on the bottom of the page ;)</description>
		<content:encoded><![CDATA[<p>I tried to compile a project that you provided as an example but it did not compile (interface had unimplemented methods). So I corrected it and added maven-dependency-plugin to gather all dependencies and copy to one place (i.e. target/lib) so the start of a java process will be as smooth as possible. </p>
<p>zip uploaded on filefactory:<br />
<a href="http://www.filefactory.com/file/a127bhd/n/spring3-resttemplate-20091220.zip" rel="nofollow">http://www.filefactory.com/file/a127bhd/n/spring3-resttemplate-20091220.zip</a><br />
link on the bottom of the page <img src='http://blog.springsource.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daggie.be &#124; Devoxx 2009, day 2</title>
		<link>http://blog.springsource.com/2009/03/27/rest-in-spring-3-resttemplate/comment-page-1/#comment-169566</link>
		<dc:creator>Daggie.be &#124; Devoxx 2009, day 2</dc:creator>
		<pubDate>Thu, 19 Nov 2009 20:47:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.springsource.com/?p=1469#comment-169566</guid>
		<description>[...] Arjen presented a demo on REST support for retrieving images from Flickr, that can be found here. Spring 3.0 should be adrop-in replacement voor [...]</description>
		<content:encoded><![CDATA[<p>[...] Arjen presented a demo on REST support for retrieving images from Flickr, that can be found here. Spring 3.0 should be adrop-in replacement voor [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Siddhartha</title>
		<link>http://blog.springsource.com/2009/03/27/rest-in-spring-3-resttemplate/comment-page-1/#comment-168789</link>
		<dc:creator>Siddhartha</dc:creator>
		<pubDate>Tue, 13 Oct 2009 10:44:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.springsource.com/?p=1469#comment-168789</guid>
		<description>Hi ,

The above is very helpful.

I have a rest server in apache cxf with spring. I was looking for the list capture through rest template. I found the following code snippet is working well. Hopefully It would help others

SecurityCredentialBean[] res  =(SecurityCredentialBean[])this.restTemplate.getForObject(uri, SecurityCredentialBean[].class, vars);
List securityCredentialBeans = Arrays.asList(res);


Thanks
--Siddhartha</description>
		<content:encoded><![CDATA[<p>Hi ,</p>
<p>The above is very helpful.</p>
<p>I have a rest server in apache cxf with spring. I was looking for the list capture through rest template. I found the following code snippet is working well. Hopefully It would help others</p>
<p>SecurityCredentialBean[] res  =(SecurityCredentialBean[])this.restTemplate.getForObject(uri, SecurityCredentialBean[].class, vars);<br />
List securityCredentialBeans = Arrays.asList(res);</p>
<p>Thanks<br />
&#8211;Siddhartha</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marius Munteanu</title>
		<link>http://blog.springsource.com/2009/03/27/rest-in-spring-3-resttemplate/comment-page-1/#comment-168550</link>
		<dc:creator>Marius Munteanu</dc:creator>
		<pubDate>Sun, 27 Sep 2009 16:42:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.springsource.com/?p=1469#comment-168550</guid>
		<description>Great work for 3.0!

Unfortunately, the maven 3.0.0.* .pom files have weird dependencies configured such as:
      org.apache.commons
      com.springsource.org.apache.commons.logging
or
      org.apache.log4j
      com.springsource.org.apache.log4j
and many others...

It looks like the artifcatId is worng on all the external dependencies.

Am I missing something?

P.S.: I am using the milestone repo
      
        SpringSource Enterprise Bundle Repositorys
        http://repository.springsource.com/maven/bundles/milestone
      </description>
		<content:encoded><![CDATA[<p>Great work for 3.0!</p>
<p>Unfortunately, the maven 3.0.0.* .pom files have weird dependencies configured such as:<br />
      org.apache.commons<br />
      com.springsource.org.apache.commons.logging<br />
or<br />
      org.apache.log4j<br />
      com.springsource.org.apache.log4j<br />
and many others&#8230;</p>
<p>It looks like the artifcatId is worng on all the external dependencies.</p>
<p>Am I missing something?</p>
<p>P.S.: I am using the milestone repo</p>
<p>        SpringSource Enterprise Bundle Repositorys<br />
        <a href="http://repository.springsource.com/maven/bundles/milestone" rel="nofollow">http://repository.springsource.com/maven/bundles/milestone</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Topping</title>
		<link>http://blog.springsource.com/2009/03/27/rest-in-spring-3-resttemplate/comment-page-1/#comment-168522</link>
		<dc:creator>Brian Topping</dc:creator>
		<pubDate>Tue, 22 Sep 2009 14:34:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.springsource.com/?p=1469#comment-168522</guid>
		<description>Oh, my bad, the third and possibly best option is creating a RequestCallback.  It will be computationally the most expensive, but with the least (or no) impact to the current code.  That way, you can have a stab at it and merge it into the code base as you are most comfortable with for long-term support.</description>
		<content:encoded><![CDATA[<p>Oh, my bad, the third and possibly best option is creating a RequestCallback.  It will be computationally the most expensive, but with the least (or no) impact to the current code.  That way, you can have a stab at it and merge it into the code base as you are most comfortable with for long-term support.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Topping</title>
		<link>http://blog.springsource.com/2009/03/27/rest-in-spring-3-resttemplate/comment-page-1/#comment-168521</link>
		<dc:creator>Brian Topping</dc:creator>
		<pubDate>Tue, 22 Sep 2009 14:16:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.springsource.com/?p=1469#comment-168521</guid>
		<description>Hi Arjen, thanks for your response.  No problem on the timing, there&#039;s always another version and this code is isolated enough that I can run my own version until it&#039;s integrated. 

A crash course on OAuth would be to say that the hierarchical part of the URI is left alone for signature purposes, but all the query attributes need to be sorted and a URL string generated before the hash is calculated.  As well, in a form-based POST, the attributes of the form need to be included in that sort for the signature calculation.  

Two approaches come to mind: The first would be to rewrite UriTemplate such that it can add a signature in-place as a part of the variable expansion.  This is complicated by the fact that the sort for the signature also requires any form variables that may exist plus the method (GET, POST, etc.) to calculate the hash.  In this case, it probably makes sense to refactor the UriTemplate.expand() code to a client responsibility, sending in a final java.net.URI.  This has the least impact to the existing code.

The second approach would be to add authorization post-processing code to doExecute(). But in doing so, there is an efficiency cost since the query part of the URI needs to be re-parsed so it can be sorted.  The advantage here is by the time the code is executed, we have all the form components and completed URI available to us, and in doing so, the existing functionality exposed to the client and managed by UriTemplate is unchanged.

WDYT?  Feel free to respond off-list to my email address.</description>
		<content:encoded><![CDATA[<p>Hi Arjen, thanks for your response.  No problem on the timing, there&#039;s always another version and this code is isolated enough that I can run my own version until it&#039;s integrated. </p>
<p>A crash course on OAuth would be to say that the hierarchical part of the URI is left alone for signature purposes, but all the query attributes need to be sorted and a URL string generated before the hash is calculated.  As well, in a form-based POST, the attributes of the form need to be included in that sort for the signature calculation.  </p>
<p>Two approaches come to mind: The first would be to rewrite UriTemplate such that it can add a signature in-place as a part of the variable expansion.  This is complicated by the fact that the sort for the signature also requires any form variables that may exist plus the method (GET, POST, etc.) to calculate the hash.  In this case, it probably makes sense to refactor the UriTemplate.expand() code to a client responsibility, sending in a final java.net.URI.  This has the least impact to the existing code.</p>
<p>The second approach would be to add authorization post-processing code to doExecute(). But in doing so, there is an efficiency cost since the query part of the URI needs to be re-parsed so it can be sorted.  The advantage here is by the time the code is executed, we have all the form components and completed URI available to us, and in doing so, the existing functionality exposed to the client and managed by UriTemplate is unchanged.</p>
<p>WDYT?  Feel free to respond off-list to my email address.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
