public class SyndicationFeed extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
authorField |
protected String |
baseURL
Return a url to the DSpace object, either use the official
handle for the item or build a url based upon the current server.
|
protected CollectionService |
collectionService |
protected CommunityService |
communityService |
protected String |
dateField |
protected String |
dcCreatorField |
protected String |
dcDateField |
protected String |
dcDescriptionField |
protected String |
defaultAuthorField |
protected String |
defaultDateField |
protected String |
defaultExternalMedia |
protected String |
defaultTitleField |
protected String |
externalSourceField |
protected com.sun.syndication.feed.synd.SyndFeed |
feed |
protected ItemService |
itemService |
protected org.apache.log4j.Logger |
log |
static String |
MSG_FEED_DESCRIPTION |
static String |
MSG_FEED_TITLE |
static String |
MSG_LOGO_TITLE |
static String |
MSG_METADATA |
static String |
MSG_UITYPE |
static String |
MSG_UNTITLED
i18n key values
|
protected String[] |
podcastableMIMETypes |
protected javax.servlet.http.HttpServletRequest |
request |
protected String |
titleField |
protected String |
uiType |
static String |
UITYPE_JSPUI |
static String |
UITYPE_XMLUI |
| 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,
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) |
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,
DSpaceObject[] items,
Map<String,String> labels)
public void setType(String feedType)
public Document outputW3CDom() throws com.sun.syndication.io.FeedException
com.sun.syndication.io.FeedExceptionpublic String outputString() throws com.sun.syndication.io.FeedException
com.sun.syndication.io.FeedExceptionpublic void output(Writer writer) throws com.sun.syndication.io.FeedException, IOException
com.sun.syndication.io.FeedExceptionIOExceptionpublic void addModule(com.sun.syndication.feed.module.Module m)
protected String urlOfBitstream(javax.servlet.http.HttpServletRequest request, Bitstream logo)
protected String resolveURL(javax.servlet.http.HttpServletRequest request, DSpaceObject dso)
Copyright © 2016 DuraSpace. All Rights Reserved.