|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.pebble.webservice.AbstractAPIHandler
public abstract class AbstractAPIHandler
A handler for the XML-RPC blogging APIs.
Constructor Summary | |
---|---|
AbstractAPIHandler()
|
Method Summary | |
---|---|
protected void |
authenticate(Blog blog,
java.lang.String username,
java.lang.String password)
A helper method to authenticate a username/password pair against the properties for the specified Blog instance. |
protected java.lang.String |
formatPostId(java.lang.String blogid,
java.lang.String postid)
Formats a post ID for the blogger client. |
AuthenticationManager |
getAuthenticationManager()
|
protected Blog |
getBlogWithBlogId(java.lang.String blogId)
Gets the blog from a given String. |
protected Blog |
getBlogWithPostId(java.lang.String s)
Gets the blog from a given String. |
protected java.lang.String |
getPostId(java.lang.String s)
Gets the post ID (blog entry ID) from a given String. |
void |
setAuthenticationManager(AuthenticationManager authenticationManager)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractAPIHandler()
Method Detail |
---|
public AuthenticationManager getAuthenticationManager()
public void setAuthenticationManager(AuthenticationManager authenticationManager)
protected void authenticate(Blog blog, java.lang.String username, java.lang.String password) throws XmlRpcAuthenticationException
blog
- the Blog instance to test againstusername
- the username used for logging in via XML-RPCpassword
- the password used for logging in via XML-RPC
XmlRpcAuthenticationException
protected Blog getBlogWithPostId(java.lang.String s) throws XmlRpcException
s
- the String containing the post ID
XmlRpcException
protected Blog getBlogWithBlogId(java.lang.String blogId) throws XmlRpcException
blogId
- the String containing the post ID
XmlRpcException
protected java.lang.String getPostId(java.lang.String s)
s
- the String containing the post ID
protected java.lang.String formatPostId(java.lang.String blogid, java.lang.String postid)
blogid
- the blog IDpostid
- the post ID
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |