com.spinn3r.api
Class SourceClient
java.lang.Object
com.spinn3r.api.BaseClient
com.spinn3r.api.SourceClient
- All Implemented Interfaces:
- Client
public class SourceClient
- extends BaseClient
- implements Client
API client that implements Spinn3r's source registration API.
| Fields inherited from class com.spinn3r.api.BaseClient |
ACCEPT_ENCODING_HEADER, COMMENT_HANDLER, config, DEFAULT_CONNECT_TIMEOUT, DEFAULT_HOST, DEFAULT_HTTP_KEEPALIVE, DEFAULT_MAX_REDIRECTS, DEFAULT_READ_TIMEOUT, disable_parse, FEED_HANDLER, GZIP_ENCODING, isCompressed, LINK_HANDLER, NETWORKADDRESS_CACHE_TTL, NS_API, NS_ATOM, NS_COMMENT, NS_DC, NS_FEED, NS_LINK, NS_POST, NS_SOURCE, NS_TARGET, NS_WEBLOG, PERMALINK_HANDLER, RESTART_BUFFER, results, RETRY_MAX, USER_AGENT, USER_AGENT_HEADER |
|
Method Summary |
void |
fetch()
|
java.util.List<BaseItem> |
getResults()
|
java.lang.String |
getRouter()
Return the router for this client. |
static void |
main(java.lang.String[] args)
|
protected BaseResult |
parseItem(ContentApi.Entry current)
|
void |
register(java.lang.String link)
Deprecated. use SourceRegisterClient. This method will be supported
until Aug 1, 2008 at which point it will be removed. |
Source |
status(java.lang.String link)
Check on the status of a weblog within Spinn3r. |
| Methods inherited from class com.spinn3r.api.BaseClient |
addParam, addParam, addParam, doProtobufFetch, doXmlFetch, empty, fetch, generateFirstRequestURL, getCallDuration, getConfig, getConservativeLimit, getElementByTagName, getElementByTagName, getElementCDATAByTagName, getElementCDATAByTagName, getHost, getInputStream, getLastRequestURL, getLimit, getMaxLimit, getNextRequestURL, getopt, getOptimalLimit, getParseDuration, getRestartPoint, getSleepDuration, hasMoreResults, padd, parseChildNodesAsList, parseFloat, parseInt, parseItem, parseItem, parseItem, parseLong, parseTags, protobufParse, setCallDuration, setConfig, setHost, setLastRequestURL, setNextRequestURL, setParam, setParseDuration, setSleepDuration, toISO8601, xmlParse |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.spinn3r.api.Client |
getCallDuration, getConfig, getHost, getInputStream, getLastRequestURL, getNextRequestURL, getParseDuration, getRestartPoint, getSleepDuration, setConfig, setHost, setParseDuration, setSleepDuration |
SourceClient
public SourceClient()
fetch
public void fetch()
throws java.io.IOException,
ParseException,
java.lang.InterruptedException
- Specified by:
fetch in interface Client
- Throws:
java.io.IOException
ParseException
java.lang.InterruptedException
getResults
public java.util.List<BaseItem> getResults()
- Specified by:
getResults in interface Client
register
public void register(java.lang.String link)
throws java.lang.Exception
- Deprecated. use SourceRegisterClient. This method will be supported
until Aug 1, 2008 at which point it will be removed.
- Register a new weblog within Spinn3r.
- Throws:
java.lang.Exception - when registration fails.
parseItem
protected BaseResult parseItem(ContentApi.Entry current)
throws java.lang.Exception
- Specified by:
parseItem in class BaseClient
- Throws:
java.lang.Exception
status
public Source status(java.lang.String link)
throws java.lang.Exception
- Check on the status of a weblog within Spinn3r.
- Throws:
java.io.FileNotFoundException - when the weblog was not found in our index.
java.lang.Exception
getRouter
public java.lang.String getRouter()
- Description copied from class:
BaseClient
- Return the router for this client. Right now this is either:
http://api.spinn3r.com/rss/feed.getDelta?
or
http://api.spinn3r.com/rss/permalink.getDelta?
- Specified by:
getRouter in interface Client- Specified by:
getRouter in class BaseClient
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © Tailrank Inc. All Rights Reserved.