@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, toPostStructure
getAuthor, getBlog, getCategories, getContent, getDraft, getId, getModificationDate, getPermalink, getPublicationDate, getSummary, getTitle, setAuthor, setCategories, setContent, setDraft, setModificationDate, setPublicationDate, setSummary, setTitle, toString
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAuthor, getBlog, getCategories, getContent, getDraft, getId, getModificationDate, getPermalink, getPublicationDate, getSummary, getTitle, setAuthor, setCategories, setContent, setDraft, setModificationDate, setPublicationDate, setSummary, setTitle
private 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 BlogResource
public java.lang.String getToken()
getToken
in interface BlogEntry
getToken
in class MetaWeblogEntry
public java.lang.String getContentType()
public java.io.InputStream getAsStream() throws BlogClientException
getAsStream
in interface BlogResource
BlogClientException
public void save() throws BlogClientException
save
in interface BlogEntry
save
in class MetaWeblogEntry
BlogClientException
public void update(byte[] bytes) throws BlogClientException
update
in interface BlogResource
BlogClientException
public byte[] getBytes()
public void delete() throws BlogClientException
delete
in interface BlogEntry
delete
in class MetaWeblogEntry
BlogClientException