/** * Accepts only release announce. */ public boolean isRelease(@Body SyndFeed feed) { SyndEntry firstEntry = (SyndEntry) feed.getEntries().get(0); return firstEntry.getTitle().toLowerCase().contains("release"); }
try { SyndEntry entry = new SyndEntryImpl(); SyndContent description; entry = new SyndEntryImpl(); if ( title != null ) { entry.setTitle( title ); entry.setLink( link ); entry.setPublishedDate( date ); entry.setAuthor( author ); description = new SyndContentImpl(); description.setType( "text/plain" ); description.setValue( desc ); entry.setDescription( description ); entry.getModules().add( geoRSSModule );
for (SyndEntry entry : (List<SyndEntry>) feed.getEntries()) { jsonObject.put("title", entry.getTitle().toString()); jsonObject.put("link", entry.getLink().toString()); jsonObject.put("uri", entry.getUri().toString()); jsonObject.put("guid", Integer.toString(entry.hashCode())); if (entry.getPublishedDate() != null) jsonObject.put("pubDate", entry.getPublishedDate().toString()); if (entry.getUpdatedDate() != null) jsonObject.put("updateDate", entry.getUpdatedDate().toString()); if (entry.getDescription() != null) jsonObject.put("description", entry.getDescription().getValue().toString());
data.feed = new SyndFeedImpl(); if ( Utils.isEmpty( meta.getVersion() ) ) { data.feed.setFeedType( "rss_2.0" ); } else { data.feed.setFeedType( meta.getVersion() ); data.feed.setEncoding( "iso-8859-1" ); } else { data.feed.setEncoding( meta.getEncoding() ); data.feed.setTitle( title ); data.feed.setLink( link ); data.feed.setDescription( description ); data.feed.setPublishedDate( Pubdate ); // data.dateParser.parse(Pubdate.toString())); SyndImage image = new SyndImageImpl(); if ( imageTitle != null ) { image.setTitle( title ); image.setLink( link ); image.setUrl( imageUrl ); image.setDescription( imageDescription ); data.feed.setImage( image );
/** * Sets the feed title. * <p> * @param title the feed title to set, <b>null</b> if none. * */ public void setTitle(String title) { if (_title == null) _title = new SyndContentImpl(); _title.setValue(title); }
public static SyndContent content(String value, String mime, String mode) { final SyndContent c = new SyndContentImpl(); c.setValue(value); c.setType(mime); c.setMode(mode); return c; }
public static SyndImage image(String url, String title, String description, String link) { final SyndImage i = new SyndImageImpl(); i.setTitle(title); i.setDescription(description); i.setUrl(url); i.setLink(link); return i; }
entry = new SyndEntryImpl(); entry.setTitle("ROME v3.0"); entry.setLink("http://wiki.java.net/bin/view/Javawsxml/Rome03"); entry.setPublishedDate(DATE_PARSER.parse("2004-07-27")); description = new SyndContentImpl(); description.setType("text/html"); description.setValue("<p>More Bug fixes, mor API changes, some new features and some Unit testing</p>"+ "<p>For details check the <a href=\"http://wiki.java.net/bin/view/Javawsxml/RomeChangesLog#RomeV03\">Changes Log</a></p>"); entry.setDescription(description); entries.add(entry);
public static SyndEnclosure enclosure(String url, String type, long length) { final SyndEnclosure enclosure = new SyndEnclosureImpl(); enclosure.setUrl(url); enclosure.setType(type); enclosure.setLength(length); return enclosure; }
public static SyndPerson person(String name, String email, String uri) { final SyndPerson p = new SyndPersonImpl(); p.setName(name); p.setEmail(email); p.setUri(uri); return p; }
public static SyndCategory category(String name, String taxonomyUri) { final SyndCategory c = new SyndCategoryImpl(); c.setName(name); c.setTaxonomyUri(taxonomyUri); return c; }
/** * Sets the feed description. * <p> * @param description the feed description to set, <b>null</b> if none. * */ public void setDescription(String description) { if (_description == null) _description = new SyndContentImpl(); _description.setValue(description); }
/** * Sets the entry title. * <p> * @param title the entry title to set, <b>null</b> if none. * */ public void setTitle(String title) { if (_title == null) _title = new SyndContentImpl(); _title.setValue(title); }
/** * Sets the feed title. * <p> * @param title the feed title to set, <b>null</b> if none. * */ public void setTitle(String title) { if (_title == null) _title = new SyndContentImpl(); _title.setValue(title); }
/** * Sets the feed description. * <p> * @param description the feed description to set, <b>null</b> if none. * */ public void setDescription(String description) { if (_description == null) _description = new SyndContentImpl(); _description.setValue(description); }
/** * Sets the feed description. * <p> * @param description the feed description to set, <b>null</b> if none. * */ public void setDescription(String description) { if (_description == null) _description = new SyndContentImpl(); _description.setValue(description); }
/** * Sets the entry title. * <p> * @param title the entry title to set, <b>null</b> if none. * */ public void setTitle(String title) { if (_title == null) _title = new SyndContentImpl(); _title.setValue(title); }
/** * Sets the entry title. * <p> * @param title the entry title to set, <b>null</b> if none. * */ public void setTitle(String title) { if (_title == null) _title = new SyndContentImpl(); _title.setValue(title); }
/** * Sets the feed title. * <p> * @param title the feed title to set, <b>null</b> if none. * */ public void setTitle(String title) { if (_title == null) _title = new SyndContentImpl(); _title.setValue(title); }
/** * Sets the entry title. * <p> * @param title the entry title to set, <b>null</b> if none. * */ public void setTitle(String title) { if (_title == null) _title = new SyndContentImpl(); _title.setValue(title); }