public class MetaWeblogHandler extends java.lang.Object implements WikiRPCHandler
JSPWiki does not support categories, and therefore we always return an empty list for getCategories(). Note also that this API is not suitable for general Wiki editing, since JSPWiki formats the entries in a wiki-compatible manner. And you cannot choose your page names either. Since 2.1.94 the entire MetaWeblog API is supported.
| Constructor and Description |
|---|
MetaWeblogHandler() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Hashtable<java.lang.Object,java.lang.Object> |
getCategories(java.lang.String blogid,
java.lang.String username,
java.lang.String password)
JSPWiki does not support categories, therefore JSPWiki always returns an empty list for categories.
|
java.util.Hashtable |
getRecentPosts(java.lang.String blogid,
java.lang.String username,
java.lang.String password,
int numberOfPosts)
Returns a list of the recent posts to this weblog.
|
void |
initialize(Context context) |
java.util.Hashtable<java.lang.String,java.lang.Object> |
newMediaObject(java.lang.String blogid,
java.lang.String username,
java.lang.String password,
java.util.Hashtable<java.lang.String,java.lang.Object> content)
Creates an attachment and adds it to the blog.
|
java.lang.String |
newPost(java.lang.String blogid,
java.lang.String username,
java.lang.String password,
java.util.Hashtable<java.lang.String,java.lang.Object> content,
boolean publish)
Adds a new post to the blog.
|
public MetaWeblogHandler()
public void initialize(Context context)
initialize in interface WikiRPCHandlerpublic java.util.Hashtable<java.lang.Object,java.lang.Object> getCategories(java.lang.String blogid, java.lang.String username, java.lang.String password) throws org.apache.xmlrpc.XmlRpcException
blogid - The id of the blog.username - The username to usepassword - The passwordorg.apache.xmlrpc.XmlRpcException - If something goes wrongpublic java.util.Hashtable getRecentPosts(java.lang.String blogid, java.lang.String username, java.lang.String password, int numberOfPosts) throws org.apache.xmlrpc.XmlRpcException
blogid - The id of the blog.username - The username to usepassword - The passwordnumberOfPosts - How many posts to findorg.apache.xmlrpc.XmlRpcException - If something goes wrongpublic java.lang.String newPost(java.lang.String blogid, java.lang.String username, java.lang.String password, java.util.Hashtable<java.lang.String,java.lang.Object> content, boolean publish) throws org.apache.xmlrpc.XmlRpcException
blogid - The id of the blog.username - The username to usepassword - The passwordcontent - As per Metaweblogapi contractpublish - This parameter is ignored for JSPWiki.org.apache.xmlrpc.XmlRpcException - If something goes wrongpublic java.util.Hashtable<java.lang.String,java.lang.Object> newMediaObject(java.lang.String blogid, java.lang.String username, java.lang.String password, java.util.Hashtable<java.lang.String,java.lang.Object> content) throws org.apache.xmlrpc.XmlRpcException
blogid - The id of the blog.username - The username to usepassword - The passwordcontent - As per the MetaweblogAPI contractorg.apache.xmlrpc.XmlRpcException - If something goes wrongCopyright (c) 2001-2022 The Apache Software Foundation. All rights reserved.