|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.app.util.SyndicationFeed
public class SyndicationFeed
Invoke ROME library to assemble a generic model of a syndication for the given list of Items and scope. Consults configuration for the metadata bindings to feed elements. Uses ROME's output drivers to return any of the implemented formats, e.g. RSS 1.0, RSS 2.0, ATOM 1.0. The feed generator and OpenSearch call on this class so feed contents are uniform for both.
| Field Summary | |
|---|---|
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 |
static String |
UITYPE_JSPUI
|
static String |
UITYPE_XMLUI
|
| Constructor Summary | |
|---|---|
SyndicationFeed(String ui)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addModule(com.sun.syndication.feed.module.Module m)
Add a ROME plugin module (e.g. |
static String[] |
getDescriptionSelectors()
Returns list of metadata selectors used to compose the description element |
void |
output(Writer writer)
send the output to designated Writer |
String |
outputString()
|
Document |
outputW3CDom()
|
void |
populate(javax.servlet.http.HttpServletRequest request,
DSpaceObject dso,
DSpaceObject[] items,
Map<String,String> labels)
Fills in the feed and entry-level metadata from DSpace objects. |
void |
setType(String feedType)
Sets the feed type for XML delivery, e.g. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public SyndicationFeed(String ui)
ui - either "xmlui" or "jspui"| Method Detail |
|---|
public static String[] getDescriptionSelectors()
public void populate(javax.servlet.http.HttpServletRequest request,
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.FeedException
public String outputString()
throws com.sun.syndication.io.FeedException
com.sun.syndication.io.FeedException
public void output(Writer writer)
throws com.sun.syndication.io.FeedException,
IOException
com.sun.syndication.io.FeedException
IOExceptionpublic void addModule(com.sun.syndication.feed.module.Module m)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||