public class Feed extends SaxRepresentation
| Modifier and Type | Field and Description |
|---|---|
static String |
ATOM_NAMESPACE
Atom Syndication Format namespace.
|
static String |
XHTML_NAMESPACE
XHTML namespace.
|
UNKNOWN_SIZE| Constructor and Description |
|---|
Feed()
Constructor.
|
Feed(Client clientDispatcher,
String feedUri)
Constructor.
|
Feed(Context context,
String feedUri)
Constructor.
|
Feed(Representation xmlFeed)
Constructor.
|
Feed(Representation xmlFeed,
FeedReader feedReader)
Constructor.
|
Feed(String feedUri)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
List<Person> |
getAuthors()
Returns the authors of the feed.
|
Reference |
getBaseReference()
Returns the base reference used to resolve relative references found
within the scope of the xml:base attribute.
|
List<Category> |
getCategories()
Returns the categories associated with the feed.
|
List<Person> |
getContributors()
Returns the contributors to the feed.
|
List<Entry> |
getEntries()
Returns the individual entries, acting as a components for associated
metadata and data.
|
Generator |
getGenerator()
Returns the agent used to generate a feed.
|
Reference |
getIcon()
Returns the image that provides iconic visual identification for a feed.
|
String |
getId()
Returns the permanent, universally unique identifier for the feed.
|
List<Link> |
getLinks()
Returns the references from the entry to Web resources.
|
Reference |
getLogo()
Returns the image that provides visual identification for a feed.
|
Text |
getRights()
Returns the information about rights held in and over an feed.
|
Text |
getSubtitle()
Returns the short summary, abstract, or excerpt of an feed.
|
Text |
getTitle()
Returns the human-readable title for the feed.
|
Date |
getUpdated()
Returns the most recent moment when the entry was modified in a
significant way.
|
void |
setBaseReference(Reference baseReference)
Sets the base reference used to resolve relative references found within
the scope of the xml:base attribute.
|
void |
setBaseReference(String baseUri)
Sets the base URI used to resolve relative references found within the
scope of the xml:base attribute.
|
void |
setGenerator(Generator generator)
Sets the agent used to generate a feed.
|
void |
setIcon(Reference icon)
Sets the image that provides iconic visual identification for a feed.
|
void |
setId(String id)
Sets the permanent, universally unique identifier for the feed.
|
void |
setLogo(Reference logo)
Sets the image that provides visual identification for a feed.
|
void |
setRights(String rights)
Sets the information about rights held in and over an feed.
|
void |
setRights(Text rights)
Sets the information about rights held in and over an feed.
|
void |
setSubtitle(String subtitle)
Sets the short summary, abstract, or excerpt of an feed.
|
void |
setSubtitle(Text subtitle)
Sets the short summary, abstract, or excerpt of an feed.
|
void |
setTitle(String title)
Sets the human-readable title for the feed.
|
void |
setTitle(Text title)
Sets the human-readable title for the feed.
|
void |
setUpdated(Date updated)
Sets the most recent moment when the feed was modified in a significant
way.
|
void |
write(XmlWriter writer)
Writes the representation to a XML writer.
|
void |
writeElement(XmlWriter writer)
Writes the current object as an XML element using the given SAX writer.
|
getInputSource, getSaxSource, isSecureProcessing, parse, release, setSaxSource, setSecureProcessing, writeevaluate, getBoolean, getDocument, getDocumentBuilder, getDomSource, getEntityResolver, getErrorHandler, getNamespaces, getNamespaceURI, getNode, getNodes, getNumber, getPrefix, getPrefixes, getSaxSource, getSchema, getStreamSource, getText, isCoalescing, isExpandingEntityRefs, isIgnoringComments, isIgnoringExtraWhitespaces, isNamespaceAware, isValidatingDtd, isXIncludeAware, setCoalescing, setEntityResolver, setErrorHandler, setExpandingEntityRefs, setIgnoringComments, setIgnoringExtraWhitespaces, setNamespaceAware, setNamespaces, setSchema, setSchema, setValidatingDtd, setXIncludeAware, validate, validate, validate, validategetReadergetChannel, getStream, write, writeappend, exhaust, getAvailableSize, getDigest, getDisposition, getExpirationDate, getRange, getRegistration, getSize, getText, hasKnownSize, isAvailable, isEmpty, isSelectable, isTransient, setAvailable, setDigest, setDisposition, setExpirationDate, setListener, setRange, setSize, setTransientgetModificationDate, getTag, setModificationDate, setTagcreateClientInfo, equals, getCharacterSet, getEncodings, getLanguages, getLocationRef, getMediaType, includes, isCompatible, setCharacterSet, setEncodings, setLanguages, setLocationRef, setLocationRef, setMediaType, toStringpublic static final String ATOM_NAMESPACE
public static final String XHTML_NAMESPACE
public Feed()
public Feed(Client clientDispatcher, String feedUri) throws IOException
clientDispatcher - The client HTTP dispatcher.feedUri - The feed URI.IOExceptionpublic Feed(Context context, String feedUri) throws IOException
context - The context from which the client dispatcher will be
retrieved.feedUri - The feed URI.IOExceptionpublic Feed(Representation xmlFeed) throws IOException
xmlFeed - The XML feed document.IOExceptionpublic Feed(Representation xmlFeed, FeedReader feedReader) throws IOException
xmlFeed - The XML feed document.feedReader - Custom feed reader.IOExceptionpublic Feed(String feedUri) throws IOException
feedUri - The feed URI.IOExceptionpublic List<Person> getAuthors()
public Reference getBaseReference()
public List<Category> getCategories()
public List<Person> getContributors()
public List<Entry> getEntries()
public Generator getGenerator()
public Reference getIcon()
public String getId()
public List<Link> getLinks()
public Reference getLogo()
public Text getRights()
public Text getSubtitle()
public Text getTitle()
public Date getUpdated()
public void setBaseReference(Reference baseReference)
baseReference - The base reference used to resolve relative references found
within the scope of the xml:base attribute.public void setBaseReference(String baseUri)
baseUri - The base URI used to resolve relative references found within
the scope of the xml:base attribute.public void setGenerator(Generator generator)
generator - The agent used to generate a feed.public void setIcon(Reference icon)
icon - The image that provides iconic visual identification for a
feed.public void setId(String id)
id - The permanent, universally unique identifier for the feed.public void setLogo(Reference logo)
logo - The image that provides visual identification for a feed.public void setRights(String rights)
rights - The information about rights held in and over an feed.public void setRights(Text rights)
rights - The information about rights held in and over an feed.public void setSubtitle(String subtitle)
subtitle - The short summary, abstract, or excerpt of an feed.public void setSubtitle(Text subtitle)
subtitle - The short summary, abstract, or excerpt of an feed.public void setTitle(String title)
title - The human-readable title for the feed.public void setTitle(Text title)
title - The human-readable title for the feed.public void setUpdated(Date updated)
updated - The most recent moment when the feed was modified in a
significant way.public void write(XmlWriter writer) throws IOException
write in class SaxRepresentationwriter - The XML writer to write to.IOExceptionpublic void writeElement(XmlWriter writer) throws SAXException
writer - The SAX writer.SAXExceptionCopyright © 2005–2015. All rights reserved.