|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.representation.Variant
org.restlet.representation.RepresentationInfo
org.restlet.representation.Representation
org.restlet.representation.CharacterRepresentation
org.restlet.representation.WriterRepresentation
org.restlet.ext.xml.XmlRepresentation
org.restlet.ext.xml.SaxRepresentation
org.restlet.ext.atom.Feed
public class Feed
Atom Feed Document, acting as a component for metadata and data associated with the feed.
Field Summary | |
---|---|
static String |
ATOM_NAMESPACE
Atom Syndication Format namespace. |
static String |
XHTML_NAMESPACE
XHTML namespace. |
Fields inherited from class org.restlet.representation.Representation |
---|
UNKNOWN_SIZE |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.restlet.ext.xml.SaxRepresentation |
---|
getInputSource, getSaxSource, isSecureProcessing, parse, release, setSaxSource, setSecureProcessing, write |
Methods inherited from class org.restlet.representation.WriterRepresentation |
---|
getReader |
Methods inherited from class org.restlet.representation.CharacterRepresentation |
---|
getChannel, getStream, write, write |
Methods inherited from class org.restlet.representation.Representation |
---|
append, exhaust, getAvailableSize, getDigest, getDisposition, getExpirationDate, getRange, getRegistration, getSize, getText, hasKnownSize, isAvailable, isEmpty, isSelectable, isTransient, setAvailable, setDigest, setDisposition, setExpirationDate, setListener, setRange, setSize, setTransient |
Methods inherited from class org.restlet.representation.RepresentationInfo |
---|
getModificationDate, getTag, setModificationDate, setTag |
Methods inherited from class org.restlet.representation.Variant |
---|
createClientInfo, equals, getCharacterSet, getEncodings, getLanguages, getLocationRef, getMediaType, includes, isCompatible, setCharacterSet, setEncodings, setLanguages, setLocationRef, setLocationRef, setMediaType, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String ATOM_NAMESPACE
public static final String XHTML_NAMESPACE
Constructor Detail |
---|
public Feed()
public Feed(Client clientDispatcher, String feedUri) throws IOException
clientDispatcher
- The client HTTP dispatcher.feedUri
- The feed URI.
IOException
public Feed(Context context, String feedUri) throws IOException
context
- The context from which the client dispatcher will be
retrieved.feedUri
- The feed URI.
IOException
public Feed(Representation xmlFeed) throws IOException
xmlFeed
- The XML feed document.
IOException
public Feed(Representation xmlFeed, FeedReader feedReader) throws IOException
xmlFeed
- The XML feed document.feedReader
- Custom feed reader.
IOException
public Feed(String feedUri) throws IOException
feedUri
- The feed URI.
IOException
Method Detail |
---|
public 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 SaxRepresentation
writer
- The XML writer to write to.
IOException
public void writeElement(XmlWriter writer) throws SAXException
writer
- The SAX writer.
SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |