|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.syndication.feed.atom.Entry
org.rometools.propono.atom.client.ClientEntry
public class ClientEntry
Client implementation of Atom entry, extends ROME Entry to add methods for easily getting/setting content, updating and removing the entry from the server.
| Constructor Summary | |
|---|---|
ClientEntry(ClientAtomService service,
ClientCollection collection)
|
|
ClientEntry(ClientAtomService service,
ClientCollection collection,
com.sun.syndication.feed.atom.Entry entry,
boolean partial)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Determines if entries are equal based on edit URI. |
com.sun.syndication.feed.atom.Content |
getContent()
Convenience method to get first content object in content collection. |
String |
getEditURI()
Get the URI that can be used to edit the entry via HTTP PUT or DELETE. |
void |
remove()
Remove entry from server. |
void |
setContent(com.sun.syndication.feed.atom.Content c)
Convenience method to set first content object in content collection. |
void |
setContent(String contentString,
String type)
Set content of entry. |
void |
update()
Update entry by posting new representation of entry to server. |
| Methods inherited from class com.sun.syndication.feed.atom.Entry |
|---|
clone, findRelatedLink, getAlternateLinks, getAuthors, getCategories, getContents, getContributors, getCreated, getForeignMarkup, getId, getIssued, getModified, getModule, getModules, getOtherLinks, getPublished, getRights, getSource, getSummary, getTitle, getTitleEx, getUpdated, getXmlBase, hashCode, isMediaEntry, setAlternateLinks, setAuthors, setCategories, setContents, setContributors, setCreated, setForeignMarkup, setId, setIssued, setModified, setModules, setOtherLinks, setPublished, setRights, setSource, setSummary, setTitle, setTitleEx, setUpdated, setXmlBase, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ClientEntry(ClientAtomService service,
ClientCollection collection)
public ClientEntry(ClientAtomService service,
ClientCollection collection,
com.sun.syndication.feed.atom.Entry entry,
boolean partial)
throws ProponoException
ProponoException| Method Detail |
|---|
public void setContent(String contentString,
String type)
contentString - content string.type - Must be "text" for plain text, "html" for escaped HTML,
"xhtml" for XHTML or a valid MIME content-type.public void setContent(com.sun.syndication.feed.atom.Content c)
public com.sun.syndication.feed.atom.Content getContent()
public boolean equals(Object o)
equals in class com.sun.syndication.feed.atom.Entry
public void update()
throws ProponoException
getEntry()
methods in
com.sun.syndication.propono.atom.common.Collection or
com.sun.syndication.propono.atom.common.AtomService.
ProponoException - If entry is a "partial" entry.
public void remove()
throws ProponoException
ProponoExceptionpublic String getEditURI()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||