I am bit confuse regarding best way to read the ATOM feed using spring "Rest Template". Right now, I am passing the respective url and parameter to and get the response as Source.class. Though I am getting the response correct (same as when I invoke same url in browser) is it right way to read the ATOM feed ?
Below is my spring context configuration for RestTemplate,
Response type should be assignable to com.sun.syndication.feed.atom.Feed.
By default it will read and write "application/atom+xml" unless overridden.
Make sure you have Rome on the classpath
Joined: Mar 16, 2008
After setting responseType, I will get feed response as com.sun.syndication.feed.atom.Feed, how can I use to convert to other XML form using XSLT. Currently I am using DOMSource as responseType, use java transform mechanism to transform it to other XML format using .xsl file.
Is there any documentation/tutorial available for this ?
I guess I am not exactly sure what your requirements are or why you need to perform any type of transformation on the XML. Depending on the requirements perhaps what you have is the best bet, I was just giving you an alternative for handling ATOM feeds, its hard to say more without knowing more about the context.