@GET @Path("atomsyndfeed") @Produces("application/atom+xml") public SyndFeed getSyndFeed() throws IOException { AtomFeed feed = AtomFeed.unmarshal(new StringReader(FEED)); return feed.toSynd(new SyndFeed()); }
@GET @Path("atomfeedelement") @Produces("application/atom+xml") public JAXBElement<AtomFeed> getAtomFeedElement() throws IOException { AtomFeed feed = AtomFeed.unmarshal(new StringReader(FEED)); org.apache.wink.common.model.atom.ObjectFactory of = new org.apache.wink.common.model.atom.ObjectFactory(); return of.createFeed(feed); }