public class SyndicationFeed extends Object
| Constructor and Description |
|---|
SyndicationFeed(String ui)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addModule(com.sun.syndication.feed.module.Module m)
Add a ROME plugin module (e.g.
|
protected static String |
getDefaultedConfiguration(String key,
String dfl) |
static String[] |
getDescriptionSelectors()
Returns list of metadata selectors used to compose the description element
|
protected String |
getOneDC(Item item,
String field) |
protected String |
localize(Map<String,String> labels,
String s) |
void |
output(Writer writer)
send the output to designated Writer
|
String |
outputString() |
Document |
outputW3CDom() |
void |
populate(javax.servlet.http.HttpServletRequest request,
Context context,
DSpaceObject dso,
List<? extends DSpaceObject> items,
Map<String,String> labels)
Fills in the feed and entry-level metadata from DSpace objects.
|
protected String |
resolveURL(javax.servlet.http.HttpServletRequest request,
DSpaceObject dso)
Return a url to the DSpace object, either use the official
handle for the item or build a url based upon the current server.
|
void |
setType(String feedType)
Sets the feed type for XML delivery, e.g.
|
protected String |
urlOfBitstream(javax.servlet.http.HttpServletRequest request,
Bitstream logo) |
protected final org.apache.log4j.Logger log
public static final String MSG_UNTITLED
public static final String MSG_LOGO_TITLE
public static final String MSG_FEED_TITLE
public static final String MSG_FEED_DESCRIPTION
public static final String MSG_METADATA
public static final String MSG_UITYPE
public static final String UITYPE_XMLUI
public static final String UITYPE_JSPUI
protected String defaultTitleField
protected String defaultAuthorField
protected String defaultDateField
protected String defaultExternalMedia
protected String titleField
protected String dateField
protected String authorField
protected String externalSourceField
protected String dcCreatorField
protected String dcDateField
protected String dcDescriptionField
protected String[] podcastableMIMETypes
protected com.sun.syndication.feed.synd.SyndFeed feed
protected String uiType
protected javax.servlet.http.HttpServletRequest request
protected CollectionService collectionService
protected CommunityService communityService
protected ItemService itemService
protected String baseURL
public SyndicationFeed(String ui)
ui - either "xmlui" or "jspui"public static String[] getDescriptionSelectors()
public void populate(javax.servlet.http.HttpServletRequest request,
Context context,
DSpaceObject dso,
List<? extends DSpaceObject> items,
Map<String,String> labels)
request - requestcontext - contextdso - DSpaceObjectitems - array of objectslabels - label mappublic void setType(String feedType)
feedType - feed typepublic Document outputW3CDom() throws com.sun.syndication.io.FeedException
com.sun.syndication.io.FeedException - if feed errorpublic String outputString() throws com.sun.syndication.io.FeedException
com.sun.syndication.io.FeedException - if feed errorpublic void output(Writer writer) throws com.sun.syndication.io.FeedException, IOException
writer - Writercom.sun.syndication.io.FeedException - if feed errorIOException - if IO errorpublic void addModule(com.sun.syndication.feed.module.Module m)
m - moduleprotected String urlOfBitstream(javax.servlet.http.HttpServletRequest request, Bitstream logo)
protected String resolveURL(javax.servlet.http.HttpServletRequest request, DSpaceObject dso)
request - current servlet requestdso - The object to reference, null if to the repository.Copyright © 2022 LYRASIS. All rights reserved.