public class BacklinkTitles extends TitleQuery<String>
TitleQuery.InnerActionnextPageInfo, titleIterator| Constructor and Description |
|---|
BacklinkTitles(MediaWikiBot bot,
String articleName) |
BacklinkTitles(MediaWikiBot bot,
String articleName,
RedirectFilter redirectFilter,
int... namespaces)
The public constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected Object |
clone() |
protected Collection<String> |
parseArticleTitles(String s)
picks the article name from a MediaWiki api response.
|
protected String |
parseHasMore(String s)
gets the information about a follow-up page from a provided api response.
|
protected HttpAction |
prepareCollection() |
getInnerAction, getNextMessage, getNextPageInfo, hasNext, iterator, next, removecreateNsString, evaluateXpath, getErrorElement, getRootElement, getRootElementWithError, hasMoreMessages, isSelfExecuter, processAllReturningText, processReturningText, setExceptionHandler, setHasMoreMessagespublic BacklinkTitles(MediaWikiBot bot, String articleName, RedirectFilter redirectFilter, int... namespaces)
articleName - the title of the article, != nullnamespaces - the namespace(s) that will be searched for links, as a string of numbers separated by
'|'; if null, this parameter is omitted. See for e.g. MediaWiki.NS_ALL.redirectFilter - filter that determines how to handle redirects, must be all for MW versions before
1.11; != nullpublic BacklinkTitles(MediaWikiBot bot, String articleName)
protected Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionprotected String parseHasMore(String s)
parseHasMore in class TitleQuery<String>s - text for parsingprotected Collection<String> parseArticleTitles(String s)
parseArticleTitles in class TitleQuery<String>s - text for parsingprotected HttpAction prepareCollection()
prepareCollection in class TitleQuery<String>Copyright © 2013. All Rights Reserved.