@Deprecated public class ClientEntry extends Entry
Modifier and Type | Field and Description |
---|---|
private ClientCollection |
collection
Deprecated.
|
private static org.slf4j.Logger |
LOG
Deprecated.
|
protected boolean |
partial
Deprecated.
|
private static long |
serialVersionUID
Deprecated.
|
private ClientAtomService |
service
Deprecated.
|
Constructor and Description |
---|
ClientEntry(ClientAtomService service,
ClientCollection collection)
Deprecated.
|
ClientEntry(ClientAtomService service,
ClientCollection collection,
Entry entry,
boolean partial)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
addAuthentication(org.apache.commons.httpclient.HttpMethodBase method)
Deprecated.
|
(package private) void |
addToCollection(ClientCollection col)
Deprecated.
|
boolean |
equals(java.lang.Object o)
Deprecated.
Determines if entries are equal based on edit URI.
|
(package private) ClientCollection |
getCollection()
Deprecated.
|
Content |
getContent()
Deprecated.
Convenience method to get first content object in content collection.
|
java.lang.String |
getEditURI()
Deprecated.
Get the URI that can be used to edit the entry via HTTP PUT or DELETE.
|
(package private) org.apache.commons.httpclient.HttpClient |
getHttpClient()
Deprecated.
|
void |
remove()
Deprecated.
Remove entry from server.
|
(package private) void |
setCollection(ClientCollection collection)
Deprecated.
|
void |
setContent(Content c)
Deprecated.
Convenience method to set first content object in content collection.
|
void |
setContent(java.lang.String contentString,
java.lang.String type)
Deprecated.
Set content of entry.
|
void |
setCreated(java.util.Date d)
Deprecated.
Sets the entry created date (Atom 0.3 only)
|
void |
update()
Deprecated.
Update entry by posting new representation of entry to server.
|
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, setForeignMarkup, setId, setIssued, setModified, setModules, setOtherLinks, setPublished, setRights, setSource, setSummary, setTitle, setTitleEx, setUpdated, setXmlBase, toString
private static final long serialVersionUID
private static final org.slf4j.Logger LOG
private ClientAtomService service
private ClientCollection collection
protected boolean partial
public ClientEntry(ClientAtomService service, ClientCollection collection)
public ClientEntry(ClientAtomService service, ClientCollection collection, Entry entry, boolean partial) throws ProponoException
ProponoException
public void setContent(java.lang.String contentString, java.lang.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(Content c)
public Content getContent()
public boolean equals(java.lang.Object o)
public void update() throws ProponoException
getEntry()
methods in com.rometools.rome.propono.atom.common.Collection
or com.rometools.rome.propono.atom.common.AtomService
.ProponoException
- If entry is a "partial" entry.public void remove() throws ProponoException
ProponoException
void setCollection(ClientCollection collection)
ClientCollection getCollection()
public java.lang.String getEditURI()
void addToCollection(ClientCollection col) throws ProponoException
ProponoException
void addAuthentication(org.apache.commons.httpclient.HttpMethodBase method) throws ProponoException
ProponoException
org.apache.commons.httpclient.HttpClient getHttpClient()
public void setCreated(java.util.Date d)
Entry
setCreated
in class Entry
d
- the entry created date, null if none.