@Deprecated 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.
Modifier and Type | Interface and Description |
---|---|
static interface |
Blog.Collection
Deprecated.
Represents an entry or resource collection on a blog server.
|
Modifier and Type | Method and Description |
---|---|
List<BlogEntry.Category> |
getCategories()
Deprecated.
Instead use collections directly.
|
Blog.Collection |
getCollection(String token)
Deprecated.
Get collection by token.
|
List<Blog.Collection> |
getCollections()
Deprecated.
Gets listing of entry and resource collections available in the blog, including the primary
collections.
|
Iterator<BlogEntry> |
getEntries()
Deprecated.
Instead use collections directly.
|
BlogEntry |
getEntry(String token)
Deprecated.
Get a single BlogEntry (or BlogResource) by token.
|
String |
getName()
Deprecated.
Name of this blog.
|
Iterator<BlogEntry> |
getResources()
Deprecated.
Instead use collections directly.
|
String |
getToken()
Deprecated.
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.
|
String getToken()
String getName()
BlogEntry getEntry(String token) throws BlogClientException
token
- Token from blog entry's getToken() method.com.rometools.rome.propono.blogclient.BlogClientException
- On error fetching the blog
entry.BlogClientException
List<Blog.Collection> 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.@Deprecated Iterator<BlogEntry> getEntries() throws BlogClientException
BlogClientException
- On failure or if there is no primary entries collection.@Deprecated Iterator<BlogEntry> getResources() throws BlogClientException
BlogClientException
- On failure or if there is no primary resources collection.@Deprecated BlogEntry newEntry() throws BlogClientException
BlogClientException
- On error or if there is no primary entries collection.@Deprecated 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.@Deprecated List<BlogEntry.Category> getCategories() throws BlogClientException
BlogClientException
- On error or if there is no primary entries collection.Copyright © 2024. All rights reserved.