|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.rometools.propono.blogclient.metaweblog.MetaWeblogBlog
public class MetaWeblogBlog
Blog implementation that uses a mix of Blogger and MetaWeblog API methods.
Nested Class Summary | |
---|---|
class |
MetaWeblogBlog.EntryIterator
Iterates over MetaWeblog API entries. |
class |
MetaWeblogBlog.MetaWeblogBlogCollection
MetaWeblog API impplementation of Blog.Collection |
class |
MetaWeblogBlog.NoOpIterator
No-op iterator. |
Nested classes/interfaces inherited from interface org.rometools.propono.blogclient.Blog |
---|
Blog.Collection |
Method Summary | |
---|---|
List |
getCategories()
Returns list of available BlogEntry.Category in primary entries collection. |
Blog.Collection |
getCollection(String token)
Get collection by token. |
List |
getCollections()
Gets listing of entry and resource collections available in the blog, including the primary collections. |
Iterator |
getEntries()
Get iterator over entries in primary entries collection (the first collection that accepts entries). |
BlogEntry |
getEntry(String id)
Get a single BlogEntry (or BlogResource) by token. |
String |
getName()
Name of this blog. |
Iterator |
getResources()
Get entries in primary resources collection (the first collection that accepts anything other than entries). |
String |
getToken()
Token can be used to fetch this blog again from getBlog() method. |
BlogEntry |
newEntry()
Create but do not save it to server new BlogEntry in primary entries collection (the first collection found that accepts entries). |
BlogResource |
newResource(String name,
String contentType,
byte[] bytes)
Create but do not save it to server new BlogResource in primary resources collection (the first collection found that accepts resources). |
String |
toString()
String representation of blog, returns the name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public String getName()
getName
in interface Blog
public String getToken()
getToken
in interface Blog
public String toString()
toString
in class Object
public BlogEntry newEntry()
newEntry
in interface Blog
public BlogEntry getEntry(String id) throws BlogClientException
getEntry
in interface Blog
id
- Token from blog entry's getToken() method.
BlogClientException
public Iterator getEntries() throws BlogClientException
getEntries
in interface Blog
BlogClientException
- On failure or if there is no primary entries collection.public BlogResource newResource(String name, String contentType, byte[] bytes) throws BlogClientException
newResource
in interface Blog
name
- Name of resource to be saved.contentType
- MIME content type of resource data.bytes
- Bytes of resource data.
BlogClientException
- On error or if there is no primary respurces collection.public Iterator getResources() throws BlogClientException
getResources
in interface Blog
BlogClientException
- On failure or if there is no primary resources collection.public List getCategories() throws BlogClientException
getCategories
in interface Blog
BlogClientException
- On error or if there is no primary entries collection.public List getCollections() throws BlogClientException
getCollections
in interface Blog
BlogClientException
- On error fetching collections.public Blog.Collection getCollection(String token) throws BlogClientException
getCollection
in interface Blog
token
- Token from a collection's getToken() method.
BlogClientException
- On error fetching collection.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |