|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.syndication.propono.blogclient.BaseBlogEntry
com.sun.syndication.propono.blogclient.metaweblog.MetaWeblogEntry
com.sun.syndication.propono.blogclient.metaweblog.MetaWeblogResource
public class MetaWeblogResource
MetaWeblog API implementation of an resource entry.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.sun.syndication.propono.blogclient.BlogEntry |
|---|
BlogEntry.Category, BlogEntry.Content, BlogEntry.Person |
| Field Summary |
|---|
| Fields inherited from class com.sun.syndication.propono.blogclient.BaseBlogEntry |
|---|
author, categories, content, draft, id, modificationDate, permalink, publicationDate, summary, title |
| Method Summary | |
|---|---|
void |
delete()
Not supported by MetaWeblog API |
InputStream |
getAsStream()
Get media resource as input stream. |
byte[] |
getBytes()
Get resource data as byte array. |
String |
getContentType()
Get content-type of associated media resource. |
String |
getName()
Get resource name (name is required) |
String |
getToken()
Get token, which can be used to fetch the blog entry |
void |
save()
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. |
void |
update(byte[] bytes)
Update resource by immediately uploading new bytes to server |
| Methods inherited from class com.sun.syndication.propono.blogclient.metaweblog.MetaWeblogEntry |
|---|
equals |
| Methods inherited from class com.sun.syndication.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 class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.sun.syndication.propono.blogclient.BlogEntry |
|---|
getAuthor, getBlog, getCategories, getContent, getDraft, getId, getModificationDate, getPermalink, getPublicationDate, getSummary, getTitle, setAuthor, setCategories, setContent, setDraft, setModificationDate, setPublicationDate, setSummary, setTitle |
| Method Detail |
|---|
public String getName()
getName in interface BlogResourcepublic String getToken()
getToken in interface BlogEntrygetToken in class MetaWeblogEntrypublic String getContentType()
public InputStream getAsStream()
throws BlogClientException
getAsStream in interface BlogResourceBlogClientException
public void save()
throws BlogClientException
save in interface BlogEntrysave in class MetaWeblogEntryBlogClientException
public void update(byte[] bytes)
throws BlogClientException
update in interface BlogResourceBlogClientExceptionpublic byte[] getBytes()
public void delete()
throws BlogClientException
delete in interface BlogEntrydelete in class MetaWeblogEntryBlogClientException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||