|
Restlet Framework 2.2.1 Android |
|||||||||
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.Entry
public class Entry
Represents an individual entry, acting as a component for metadata and data associated with the entry.
Field Summary |
---|
Fields inherited from class org.restlet.ext.xml.XmlRepresentation |
---|
XML_EXPANDING_ENTITY_REFS, XML_VALIDATING_DTD |
Fields inherited from class org.restlet.representation.Representation |
---|
UNKNOWN_SIZE |
Constructor Summary | |
---|---|
Entry()
Constructor. |
|
Entry(Client clientDispatcher,
java.lang.String entryUri)
Constructor. |
|
Entry(Context context,
java.lang.String entryUri)
Constructor. |
|
Entry(Representation xmlEntry)
Constructor. |
|
Entry(Representation xmlEntry,
EntryReader entryReader)
Constructor. |
|
Entry(java.lang.String entryUri)
Constructor. |
Method Summary | |
---|---|
java.util.List<Person> |
getAuthors()
Returns the authors of the entry. |
java.util.List<Category> |
getCategories()
Returns the categories associated with the entry. |
Content |
getContent()
Returns the content of the entry or links to it. |
java.util.List<Person> |
getContributors()
Returns the contributors to the entry. |
java.lang.String |
getId()
Returns the permanent, universally unique identifier for the entry. |
Link |
getLink(Relation rel)
Returns the first available link with a given relation type. |
java.util.List<Link> |
getLinks()
Returns the references from the entry to Web resources. |
java.util.Date |
getPublished()
Returns the moment associated with an event early in the life cycle of the entry. |
Text |
getRights()
Returns the information about rights held in and over an entry. |
Source |
getSource()
Returns the source feed's metadata if the entry was copied from another feed. |
java.lang.String |
getSummary()
Returns the short summary, abstract, or excerpt of the entry. |
Text |
getTitle()
Returns the human-readable title for the entry. |
java.util.Date |
getUpdated()
Returns the most recent moment when the entry was modified in a significant way. |
void |
setContent(Content content)
Sets the content of the entry or links to it. |
void |
setId(java.lang.String id)
Sets the permanent, universally unique identifier for the entry. |
void |
setPublished(java.util.Date published)
Sets the moment associated with an event early in the life cycle of the entry. |
void |
setRights(Text rights)
Sets the information about rights held in and over an entry. |
void |
setSource(Source source)
Sets the source feed's metadata if the entry was copied from another feed. |
void |
setSummary(java.lang.String summary)
Sets the short summary, abstract, or excerpt of the entry. |
void |
setTitle(java.lang.String title)
Sets the human-readable title for the entry. |
void |
setTitle(Text title)
Sets the human-readable title for the entry. |
void |
setUpdated(java.util.Date updated)
Sets the most recent moment when the entry 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. |
void |
writeInlineContent(XmlWriter writer)
Allow to write extra content inside the entry. |
Methods inherited from class org.restlet.ext.xml.SaxRepresentation |
---|
getInputSource, parse, release, write, write |
Methods inherited from class org.restlet.representation.WriterRepresentation |
---|
getReader |
Methods inherited from class org.restlet.representation.CharacterRepresentation |
---|
getChannel, getStream, 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 |
Constructor Detail |
---|
public Entry()
public Entry(Client clientDispatcher, java.lang.String entryUri) throws java.io.IOException
clientDispatcher
- The client HTTP dispatcher.entryUri
- The entry URI.
java.io.IOException
public Entry(Context context, java.lang.String entryUri) throws java.io.IOException
context
- The context from which the client dispatcher will be
retrieved.entryUri
- The entry URI.
java.io.IOException
public Entry(Representation xmlEntry) throws java.io.IOException
xmlEntry
- The XML entry document.
java.io.IOException
public Entry(Representation xmlEntry, EntryReader entryReader) throws java.io.IOException
xmlEntry
- The XML entry document.entryReader
- Custom entry reader.
java.io.IOException
public Entry(java.lang.String entryUri) throws java.io.IOException
entryUri
- The entry URI.
java.io.IOException
Method Detail |
---|
public java.util.List<Person> getAuthors()
public java.util.List<Category> getCategories()
public Content getContent()
public java.util.List<Person> getContributors()
public java.lang.String getId()
public Link getLink(Relation rel)
rel
- The relation type to match.
public java.util.List<Link> getLinks()
public java.util.Date getPublished()
public Text getRights()
public Source getSource()
public java.lang.String getSummary()
public Text getTitle()
public java.util.Date getUpdated()
public void setContent(Content content)
content
- The content of the entry or links to it.public void setId(java.lang.String id)
id
- The permanent, universally unique identifier for the entry.public void setPublished(java.util.Date published)
published
- The moment associated with an event early in the life cycle of
the entry.public void setRights(Text rights)
rights
- The information about rights held in and over an entry.public void setSource(Source source)
source
- The source feed's metadata if the entry was copied from
another feed.public void setSummary(java.lang.String summary)
summary
- The short summary, abstract, or excerpt of the entry.public void setTitle(java.lang.String title)
title
- The human-readable title for the entry.public void setTitle(Text title)
title
- The human-readable title for the entry.public void setUpdated(java.util.Date updated)
updated
- The most recent moment when the entry was modified in a
significant way.public void write(XmlWriter writer) throws java.io.IOException
write
in class SaxRepresentation
writer
- The XML writer to write to.
java.io.IOException
public void writeElement(XmlWriter writer) throws org.xml.sax.SAXException
writer
- The SAX writer.
org.xml.sax.SAXException
public void writeInlineContent(XmlWriter writer) throws org.xml.sax.SAXException
writer
- The SAX writer.
org.xml.sax.SAXException
|
Restlet Framework 2.2.1 Android |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |