net.sourceforge.pebble.webservice
Class PebbleAPIHandler
java.lang.Object
net.sourceforge.pebble.webservice.AbstractAPIHandler
net.sourceforge.pebble.webservice.PebbleAPIHandler
public class PebbleAPIHandler
- extends AbstractAPIHandler
A handler for the Pebble API (accessed via XML-RPC).
- Author:
- Simon Brown
Method Summary |
java.util.Vector |
getRecentBlogEntries(java.lang.String blogid,
java.lang.String username,
java.lang.String password,
int numberOfPosts)
Gets a list of the recent blog entries. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ID
public static final java.lang.String ID
- See Also:
- Constant Field Values
UUID
public static final java.lang.String UUID
- See Also:
- Constant Field Values
DATE
public static final java.lang.String DATE
- See Also:
- Constant Field Values
AUTHOR
public static final java.lang.String AUTHOR
- See Also:
- Constant Field Values
TITLE
public static final java.lang.String TITLE
- See Also:
- Constant Field Values
SUBTITLE
public static final java.lang.String SUBTITLE
- See Also:
- Constant Field Values
EXCERPT
public static final java.lang.String EXCERPT
- See Also:
- Constant Field Values
BODY
public static final java.lang.String BODY
- See Also:
- Constant Field Values
PERMALINK
public static final java.lang.String PERMALINK
- See Also:
- Constant Field Values
CATEGORIES
public static final java.lang.String CATEGORIES
- See Also:
- Constant Field Values
TAGS
public static final java.lang.String TAGS
- See Also:
- Constant Field Values
ATTACHMENT
public static final java.lang.String ATTACHMENT
- See Also:
- Constant Field Values
ATTACHMENT_URL
public static final java.lang.String ATTACHMENT_URL
- See Also:
- Constant Field Values
ATTACHMENT_SIZE
public static final java.lang.String ATTACHMENT_SIZE
- See Also:
- Constant Field Values
ATTACHMENT_TYPE
public static final java.lang.String ATTACHMENT_TYPE
- See Also:
- Constant Field Values
PebbleAPIHandler
public PebbleAPIHandler()
getRecentBlogEntries
public java.util.Vector getRecentBlogEntries(java.lang.String blogid,
java.lang.String username,
java.lang.String password,
int numberOfPosts)
throws XmlRpcException
- Gets a list of the recent blog entries.
- Parameters:
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
- Returns:
- a Vector of Hashtables (an array of structs) representing blog entries
- Throws:
org.apache.xmlrpc.XmlRpcException
- if something goes wrong, including an authentication error
XmlRpcException
Copyright © 2003-2006, Simon Brown. All Rights Reserved.