|
||||||||||
| 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.MetaWeblogAPIHandler
public class MetaWeblogAPIHandler
A handler for the MetaWeblog API (accessed via XML-RPC).
| Constructor Summary | |
|---|---|
MetaWeblogAPIHandler()
|
|
| Method Summary | |
|---|---|
boolean |
editPost(java.lang.String postid,
java.lang.String username,
java.lang.String password,
java.util.Hashtable struct,
boolean publish)
Edits an existing blog entry. |
java.util.Hashtable |
getCategories(java.lang.String blogid,
java.lang.String username,
java.lang.String password)
Gets a list of categories. |
java.util.Hashtable |
getPost(java.lang.String postid,
java.lang.String username,
java.lang.String password)
Gets an individual blog entry. |
java.util.Vector |
getRecentPosts(java.lang.String blogid,
java.lang.String username,
java.lang.String password,
int numberOfPosts)
Gets a list of the recent blog entries. |
java.util.Hashtable |
newMediaObject(java.lang.String blogid,
java.lang.String username,
java.lang.String password,
java.util.Hashtable struct)
Creates a new media object on the server. |
java.lang.String |
newPost(java.lang.String blogid,
java.lang.String username,
java.lang.String password,
java.util.Hashtable struct,
boolean publish)
Creates a new blog entry. |
| 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 MetaWeblogAPIHandler()
| Method Detail |
|---|
public java.util.Hashtable newMediaObject(java.lang.String blogid,
java.lang.String username,
java.lang.String password,
java.util.Hashtable struct)
throws XmlRpcException
blogid - the ID of the blogusername - the username used for logging in via XML-RPCpassword - the password used for logging in via XML-RPC
org.apache.xmlrpc.XmlRpcException - if something goes wrong, including an authentication error
XmlRpcException
public java.util.Hashtable getCategories(java.lang.String blogid,
java.lang.String username,
java.lang.String password)
throws XmlRpcException
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-RPC
org.apache.xmlrpc.XmlRpcException - if something goes wrong, including an authentication error
XmlRpcException
public java.util.Vector getRecentPosts(java.lang.String blogid,
java.lang.String username,
java.lang.String password,
int numberOfPosts)
throws XmlRpcException
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
org.apache.xmlrpc.XmlRpcException - if something goes wrong, including an authentication error
XmlRpcException
public java.util.Hashtable getPost(java.lang.String postid,
java.lang.String username,
java.lang.String password)
throws XmlRpcException
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
org.apache.xmlrpc.XmlRpcException - if something goes wrong, including an authentication error
XmlRpcException
public java.lang.String newPost(java.lang.String blogid,
java.lang.String username,
java.lang.String password,
java.util.Hashtable struct,
boolean publish)
throws XmlRpcException
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-RPCstruct - the struct containing the new blog entrypublish - a flag to indicate whether the entry should be published
org.apache.xmlrpc.XmlRpcException - if something goes wrong, including an authentication error
XmlRpcException
public boolean editPost(java.lang.String postid,
java.lang.String username,
java.lang.String password,
java.util.Hashtable struct,
boolean publish)
throws XmlRpcException
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-RPCstruct - the new content of the new blog entrypublish - a flag to indicate whether the entry should be published
org.apache.xmlrpc.XmlRpcException - if something goes wrong, including an authentication error
XmlRpcException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||