|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface Blog.Collection
Represents an entry or resource collection on a blog server.
| Method Summary | |
|---|---|
boolean |
accepts(String contentType)
Determines if collection will accept a content-type. |
List |
getAccepts()
Content-types accepted by collection. |
Blog |
getBlog()
Get blog that contains this collection. |
List |
getCategories()
Return categories allowed by colletion. |
Iterator |
getEntries()
Get iterator over entries/resources in this collection. |
String |
getTitle()
Title of collection. |
String |
getToken()
Token that can be used to fetch collection. |
BlogEntry |
newEntry()
Create but do not save new entry in collection. |
BlogResource |
newResource(String name,
String contentType,
byte[] bytes)
Create but do not save new resource in collection. |
String |
saveEntry(BlogEntry entry)
Save or update a BlogEntry in this collection by adding it to this collection and then calling it's entry.save() method. |
String |
saveResource(BlogResource resource)
Save or update resource in this collection |
| Method Detail |
|---|
Blog getBlog()
String getTitle()
String getToken()
List getAccepts()
boolean accepts(String contentType)
contentType - Content-type to be considered.
List getCategories()
throws BlogClientException
BlogClientException - On error fetching categories.
BlogEntry newEntry()
throws BlogClientException
BlogClientException - On error creating entry.
BlogResource newResource(String name,
String contentType,
byte[] bytes)
throws BlogClientException
name - Name of new resource.contentType - MIME content-type of new resource.bytes - Data for new resource.
BlogClientException - On error creating entry.
Iterator getEntries()
throws BlogClientException
BlogClientException - On error fetching entries/resources.
String saveEntry(BlogEntry entry)
throws BlogClientException
entry - BlogEntry to be saved.
BlogClientException - On error saving entry.
String saveResource(BlogResource resource)
throws BlogClientException
resource - BlogResource to be saved.
BlogClientException - On error saving resource.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||