public class AllPageTitles extends TitleQuery<String>
TitleQuery.InnerActionnextPageInfo, titleIterator| Modifier | Constructor and Description |
|---|---|
|
AllPageTitles(MediaWikiBot bot,
int... namespaces) |
|
AllPageTitles(MediaWikiBot bot,
String from,
String prefix,
RedirectFilter rf,
int... namespaces)
The public constructor.
|
protected |
AllPageTitles(MediaWikiBot bot,
String from,
String prefix,
RedirectFilter rf,
String namespaces) |
| 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 AllPageTitles(MediaWikiBot bot, String from, String prefix, RedirectFilter rf, int... namespaces)
from - page title to start from, may be nullprefix - restricts search to titles that begin with this value, may be nullrf - include redirects in the listnamespaces - the namespace(s) that will be searched for links, as a string of numbers separated by
'|'; if null, this parameter is omitted TODO are multible namespaces allowed?public AllPageTitles(MediaWikiBot bot, int... namespaces)
protected AllPageTitles(MediaWikiBot bot, String from, String prefix, RedirectFilter rf, String namespaces)
protected Collection<String> parseArticleTitles(String s)
parseArticleTitles in class TitleQuery<String>s - text for parsingprotected String parseHasMore(String s)
parseHasMore in class TitleQuery<String>s - text for parsingprotected HttpAction prepareCollection()
prepareCollection in class TitleQuery<String>protected Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionCopyright © 2013. All Rights Reserved.