| java.lang.Object org.blojsom.extension.xmlrpc.handler.APIHandler org.blojsom.extension.xmlrpc.handler.PingbackHandler
PingbackHandler | public class PingbackHandler extends APIHandler (Code) | | Pingback handler provides support for the Pingback 1.0
specification.
author: David Czarnecki version: $Id: PingbackHandler.java,v 1.8 2007/01/17 02:35:07 czarneckid Exp $ since: blojsom 3.0 |
PINGBACK_ACCESS_DENIED_CODE | final protected static int PINGBACK_ACCESS_DENIED_CODE(Code) | | |
PINGBACK_ALREADY_REGISTERED_CODE | final protected static int PINGBACK_ALREADY_REGISTERED_CODE(Code) | | |
PINGBACK_GENERIC_FAULT_CODE | final protected static int PINGBACK_GENERIC_FAULT_CODE(Code) | | |
PINGBACK_NO_LINK_TO_TARGET_URI_CODE | final protected static int PINGBACK_NO_LINK_TO_TARGET_URI_CODE(Code) | | |
PINGBACK_SOURCE_URI_METADATA | final protected static String PINGBACK_SOURCE_URI_METADATA(Code) | | |
PINGBACK_SOURCE_URI_NON_EXISTENT_CODE | final protected static int PINGBACK_SOURCE_URI_NON_EXISTENT_CODE(Code) | | |
PINGBACK_TARGET_URI_METADATA | final protected static String PINGBACK_TARGET_URI_METADATA(Code) | | |
PINGBACK_TARGET_URI_NON_EXISTENT_CODE | final protected static int PINGBACK_TARGET_URI_NON_EXISTENT_CODE(Code) | | |
PINGBACK_TARGET_URI_NOT_ENABLED_CODE | final protected static int PINGBACK_TARGET_URI_NOT_ENABLED_CODE(Code) | | |
PINGBACK_UPSTREAM_SERVER_ERROR_CODE | final protected static int PINGBACK_UPSTREAM_SERVER_ERROR_CODE(Code) | | |
PingbackHandler | public PingbackHandler()(Code) | | Construct a new Pingback handler
|
addPingback | protected Integer addPingback(String title, String excerpt, String url, String blogName, Map pingbackMetaData, Pingback pingback) throws XmlRpcException(Code) | | Add a pingback for a given blog ID
Parameters: title - Pingback title Parameters: excerpt - Pingback excerpt Parameters: url - Pingback URL Parameters: blogName - Pingback blog name Parameters: pingbackMetaData - Pingback meta-data Parameters: pingback - Pingback 0 if the pingback was registered, otherwise a fault code is returned |
getExcerptFromSource | protected String getExcerptFromSource(String source, String targetURI)(Code) | | Try to extract an excerpt from the source text. Currently looks ahead 200 and ahead 200 characters from
the location of the targetURI within the source.
Parameters: source - Source URI text Parameters: targetURI - Target URI from which to start the excerpt Excerpt of text or null if we cannot find the targetURI |
getName | public String getName()(Code) | | Gets the name of API Handler. Used to bind to XML-RPC
The API Name (ie: pingback) |
getTitleFromSource | protected String getTitleFromSource(String source)(Code) | | Try to find the <title></title> tags from the source text
Parameters: source - Source URI text Title of text or null if title tags are not found |
ping | public String ping(String sourceURI, String targetURI) throws XmlRpcException(Code) | | Notifies the server that a link has been added to sourceURI, pointing to targetURI.
Parameters: sourceURI - The absolute URI of the post on the source page containing the link to the target site. Parameters: targetURI - The absolute URI of the target of the link, as given on the source page. |
|
|