org.rometools.propono.blogclient.atomprotocol
Class AtomResource
java.lang.Object
org.rometools.propono.blogclient.BaseBlogEntry
org.rometools.propono.blogclient.atomprotocol.AtomEntry
org.rometools.propono.blogclient.atomprotocol.AtomResource
- All Implemented Interfaces:
- BlogEntry, BlogResource
public class AtomResource
- extends AtomEntry
- implements BlogResource
Atom protocol implementation of BlogResource.
Method Summary |
InputStream |
getAsStream()
Get resource as stream, using content.src as URL |
String |
getName()
Get resource name (name is required) |
void |
save()
Save this entry to it's collection. |
void |
update(byte[] newBytes)
Update resource by immediately uploading new bytes to server |
Methods inherited from class org.rometools.propono.blogclient.BaseBlogEntry |
getAuthor, getBlog, getCategories, getContent, getDraft, getId, getModificationDate, getPermalink, getPublicationDate, getSummary, getTitle, setAuthor, setCategories, setContent, setDraft, setModificationDate, setPublicationDate, setSummary, setTitle, toString |
Methods inherited from interface org.rometools.propono.blogclient.BlogEntry |
delete, getAuthor, getBlog, getCategories, getContent, getDraft, getId, getModificationDate, getPermalink, getPublicationDate, getSummary, getTitle, getToken, setAuthor, setCategories, setContent, setDraft, setModificationDate, setPublicationDate, setSummary, setTitle |
getName
public String getName()
- Get resource name (name is required)
- Specified by:
getName
in interface BlogResource
getAsStream
public InputStream getAsStream()
throws BlogClientException
- Get resource as stream, using content.src as URL
- Specified by:
getAsStream
in interface BlogResource
- Throws:
BlogClientException
save
public void save()
throws BlogClientException
- Save this entry to it's collection. If this is a new entry and does not
have a collection yet, then save() will save it to the primary collection.
- Specified by:
save
in interface BlogEntry
- Overrides:
save
in class AtomEntry
- Throws:
BlogClientException
update
public void update(byte[] newBytes)
throws BlogClientException
- Update resource by immediately uploading new bytes to server
- Specified by:
update
in interface BlogResource
- Throws:
BlogClientException
Copyright © 2007-2013 ROME Project. All Rights Reserved.