@Deprecated public class MetaWeblogResource extends MetaWeblogEntry implements BlogResource
BlogEntry.Category, BlogEntry.Content, BlogEntry.Person| Modifier and Type | Field and Description |
|---|---|
private MetaWeblogBlog |
blog
Deprecated.
|
private byte[] |
bytes
Deprecated.
|
private java.lang.String |
contentType
Deprecated.
|
private java.lang.String |
name
Deprecated.
|
author, categories, content, draft, id, modificationDate, permalink, publicationDate, summary, title| Constructor and Description |
|---|
MetaWeblogResource(MetaWeblogBlog blog,
java.lang.String name,
java.lang.String contentType,
byte[] bytes)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Deprecated.
Not supported by MetaWeblog API
|
java.io.InputStream |
getAsStream()
Deprecated.
Get media resource as input stream.
|
byte[] |
getBytes()
Deprecated.
Get resource data as byte array.
|
java.lang.String |
getContentType()
Deprecated.
Get content-type of associated media resource.
|
java.lang.String |
getName()
Deprecated.
Get resource name (name is required)
|
java.lang.String |
getToken()
Deprecated.
Get token, which can be used to fetch the blog entry
|
void |
save()
Deprecated.
Save this entry to it's collection.
|
void |
update(byte[] bytes)
Deprecated.
Update resource by immediately uploading new bytes to server
|
equals, toPostStructuregetAuthor, getBlog, getCategories, getContent, getDraft, getId, getModificationDate, getPermalink, getPublicationDate, getSummary, getTitle, setAuthor, setCategories, setContent, setDraft, setModificationDate, setPublicationDate, setSummary, setTitle, toStringclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAuthor, getBlog, getCategories, getContent, getDraft, getId, getModificationDate, getPermalink, getPublicationDate, getSummary, getTitle, setAuthor, setCategories, setContent, setDraft, setModificationDate, setPublicationDate, setSummary, setTitleprivate final MetaWeblogBlog blog
private final java.lang.String name
private final java.lang.String contentType
private byte[] bytes
MetaWeblogResource(MetaWeblogBlog blog, java.lang.String name, java.lang.String contentType, byte[] bytes)
public java.lang.String getName()
getName in interface BlogResourcepublic java.lang.String getToken()
getToken in interface BlogEntrygetToken in class MetaWeblogEntrypublic java.lang.String getContentType()
public java.io.InputStream getAsStream()
throws BlogClientException
getAsStream in interface BlogResourceBlogClientExceptionpublic void save()
throws BlogClientException
save in interface BlogEntrysave in class MetaWeblogEntryBlogClientExceptionpublic void update(byte[] bytes)
throws BlogClientException
update in interface BlogResourceBlogClientExceptionpublic byte[] getBytes()
public void delete()
throws BlogClientException
delete in interface BlogEntrydelete in class MetaWeblogEntryBlogClientException