|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Blog
Represents a blog, which has collections of entries and resources. You can access the collections using the getCollections() and getCollection(String name) methods, which return Blog.Collection objects, which you can use to create, retrieve update or delete entries within a collection.
Nested Class Summary | |
---|---|
static interface |
Blog.Collection
Represents an entry or resource collection on a blog server. |
Method Summary | |
---|---|
List |
getCategories()
Deprecated. Instead use collections directly. |
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()
Deprecated. Instead use collections directly. |
BlogEntry |
getEntry(String token)
Get a single BlogEntry (or BlogResource) by token. |
String |
getName()
Name of this blog. |
Iterator |
getResources()
Deprecated. Instead use collections directly. |
String |
getToken()
Token can be used to fetch this blog again from getBlog() method. |
BlogEntry |
newEntry()
Deprecated. Instead use collections directly. |
BlogResource |
newResource(String name,
String type,
byte[] bytes)
Deprecated. Instead use collections directly. |
Method Detail |
---|
String getToken()
String getName()
BlogEntry getEntry(String token) throws BlogClientException
token
- Token from blog entry's getToken() method.
com.sun.syndication.propono.blogclient.BlogClientException
- On error fetching the blog entry.
BlogClientException
List getCollections() throws BlogClientException
BlogClientException
- On error fetching collections.Blog.Collection getCollection(String token) throws BlogClientException
token
- Token from a collection's getToken() method.
BlogClientException
- On error fetching collection.Iterator getEntries() throws BlogClientException
BlogClientException
- On failure or if there is no primary entries collection.Iterator getResources() throws BlogClientException
BlogClientException
- On failure or if there is no primary resources collection.BlogEntry newEntry() throws BlogClientException
BlogClientException
- On error or if there is no primary entries collection.BlogResource newResource(String name, String type, byte[] bytes) throws BlogClientException
name
- Name of resource to be saved.type
- MIME content type of resource data.bytes
- Bytes of resource data.
BlogClientException
- On error or if there is no primary respurces collection.List getCategories() throws BlogClientException
BlogClientException
- On error or if there is no primary entries collection.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |