|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.pebble.webservice.AbstractAPIHandler
net.sourceforge.pebble.webservice.BloggerAPIHandler
public class BloggerAPIHandler
A handler for the Blogger API (accessed via XML-RPC).
| Constructor Summary | |
|---|---|
BloggerAPIHandler()
|
|
| Method Summary | |
|---|---|
boolean |
addCategory(java.lang.String appkey,
java.lang.String postid,
java.lang.String username,
java.lang.String password,
java.lang.String category)
Adds a category to a blog entry - this isn't a standard Blogger API method. |
boolean |
deletePost(java.lang.String appkey,
java.lang.String postid,
java.lang.String username,
java.lang.String password,
boolean publish)
Deletes an existing blog entry. |
boolean |
editPost(java.lang.String appkey,
java.lang.String postid,
java.lang.String username,
java.lang.String password,
java.lang.String content,
boolean publish)
Edits an existing blog entry. |
java.util.Hashtable |
getPost(java.lang.String appkey,
java.lang.String postid,
java.lang.String username,
java.lang.String password)
Gets an individual blog entry. |
java.util.Vector |
getRecentPosts(java.lang.String appkey,
java.lang.String blogid,
java.lang.String username,
java.lang.String password,
int numberOfPosts)
Gets a list of the recent blog entries. |
java.lang.String |
getTemplate(java.lang.String appkey,
java.lang.String blogid,
java.lang.String username,
java.lang.String password,
java.lang.String templateType)
Gets the specified template type for a blog - not supported by Pebble. |
java.util.Hashtable |
getUserInfo(java.lang.String appkey,
java.lang.String username,
java.lang.String password)
Gets information about the user logging in. |
java.util.Vector |
getUsersBlogs(java.lang.String appkey,
java.lang.String username,
java.lang.String password)
Gets a list of the blogs that the specified user can edit. |
java.lang.String |
newPost(java.lang.String appkey,
java.lang.String blogid,
java.lang.String username,
java.lang.String password,
java.lang.String content,
boolean publish)
Creates a new blog entry. |
boolean |
setTemplate(java.lang.String appkey,
java.lang.String blogid,
java.lang.String username,
java.lang.String password,
java.lang.String template,
java.lang.String templateType)
Sets the specified template type for a blog - not supported by Pebble. |
| Methods inherited from class net.sourceforge.pebble.webservice.AbstractAPIHandler |
|---|
authenticate, formatPostId, getAuthenticationManager, getBlogWithBlogId, getBlogWithPostId, getPostId, setAuthenticationManager |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BloggerAPIHandler()
| Method Detail |
|---|
public java.util.Hashtable getUserInfo(java.lang.String appkey,
java.lang.String username,
java.lang.String password)
throws XmlRpcException
appkey - the client application key (ignored)username - the username used for logging in via XML-RPCpassword - the password used for logging in via XML-RPC
XmlRpcException - if something goes wrong, including an authentication error
public java.util.Vector getUsersBlogs(java.lang.String appkey,
java.lang.String username,
java.lang.String password)
throws XmlRpcException
appkey - the client application key (ignored)username - the username used for logging in via XML-RPCpassword - the password used for logging in via XML-RPC
XmlRpcException - if something goes wrong, including an authentication error
public java.util.Vector getRecentPosts(java.lang.String appkey,
java.lang.String blogid,
java.lang.String username,
java.lang.String password,
int numberOfPosts)
throws XmlRpcException
appkey - the client application key (ignored)blogid - the ID of the blog (ignored)username - the username used for logging in via XML-RPCpassword - the password used for logging in via XML-RPCnumberOfPosts - the number of posts to get
XmlRpcException - if something goes wrong, including an authentication error
public java.util.Hashtable getPost(java.lang.String appkey,
java.lang.String postid,
java.lang.String username,
java.lang.String password)
throws XmlRpcException
appkey - the client application key (ignored)postid - the ID of the blog (ignored)username - the username used for logging in via XML-RPCpassword - the password used for logging in via XML-RPC
XmlRpcException - if something goes wrong, including an authentication error
public java.lang.String newPost(java.lang.String appkey,
java.lang.String blogid,
java.lang.String username,
java.lang.String password,
java.lang.String content,
boolean publish)
throws XmlRpcException
appkey - the client application key (ignored)blogid - the ID of the blog (ignored)username - the username used for logging in via XML-RPCpassword - the password used for logging in via XML-RPCcontent - the content of the new blog entrypublish - a flag to indicate whether the entry should be published
XmlRpcException - if something goes wrong, including an authentication error
public boolean editPost(java.lang.String appkey,
java.lang.String postid,
java.lang.String username,
java.lang.String password,
java.lang.String content,
boolean publish)
throws XmlRpcException
appkey - the client application key (ignored)postid - the ID of the blog entry to be editedusername - the username used for logging in via XML-RPCpassword - the password used for logging in via XML-RPCcontent - the new content of the new blog entrypublish - a flag to indicate whether the entry should be published
(this is ignored as all new entries are published)
XmlRpcException - if something goes wrong, including an authentication error
public boolean deletePost(java.lang.String appkey,
java.lang.String postid,
java.lang.String username,
java.lang.String password,
boolean publish)
throws XmlRpcException
appkey - the client application key (ignored)postid - the ID of the blog entry to be editedusername - the username used for logging in via XML-RPCpassword - the password used for logging in via XML-RPCpublish - a flag to indicate whether the entry should be published
(this is ignored)
XmlRpcException - if something goes wrong, including an authentication error
public java.lang.String getTemplate(java.lang.String appkey,
java.lang.String blogid,
java.lang.String username,
java.lang.String password,
java.lang.String templateType)
throws XmlRpcException
appkey - the client application key (ignored)blogid - the ID of the blogusername - the username used for logging in via XML-RPCpassword - the password used for logging in via XML-RPCtemplateType - the type of template to retrieve
XmlRpcException
public boolean setTemplate(java.lang.String appkey,
java.lang.String blogid,
java.lang.String username,
java.lang.String password,
java.lang.String template,
java.lang.String templateType)
throws XmlRpcException
appkey - the client application key (ignored)blogid - the ID of the blogusername - the username used for logging in via XML-RPCpassword - the password used for logging in via XML-RPCtemplate - the new text of the templatetemplateType - the type of template to retrieve
XmlRpcException
public boolean addCategory(java.lang.String appkey,
java.lang.String postid,
java.lang.String username,
java.lang.String password,
java.lang.String category)
throws XmlRpcException
appkey - the client application key (ignored)postid - the ID of the blog entry to be editedusername - the username used for logging in via XML-RPCpassword - the password used for logging in via XML-RPCcategory - the category ID
XmlRpcException - if something goes wrong, including an authentication error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||