public final class GetApiToken extends MWAction
| Modifier and Type | Class and Description |
|---|---|
static class |
GetApiToken.Intoken
Types that need a token.
|
| Constructor and Description |
|---|
GetApiToken(GetApiToken.Intoken intoken,
String title,
MediaWiki.Version v,
Userinfo ui)
Constructs a new
GetToken action. |
| Modifier and Type | Method and Description |
|---|---|
HttpAction |
getNextMessage() |
protected String |
getToken()
Returns the requested token after parsing the result from MediaWiki.
|
boolean |
hasMoreMessages() |
String |
processReturningText(String s,
HttpAction hm)
Deals with the MediaWiki API's response by parsing the provided text.
|
createNsString, evaluateXpath, getErrorElement, getRootElement, getRootElementWithError, isSelfExecuter, processAllReturningText, setExceptionHandler, setHasMoreMessagespublic GetApiToken(GetApiToken.Intoken intoken, String title, MediaWiki.Version v, Userinfo ui)
GetToken action.intoken - type to get the token fortitle - title of the article to generate the token forui - user info object
if this action is not supported of the MediaWiki version connected toprotected String getToken()
public String processReturningText(String s, HttpAction hm)
processReturningText in interface ReturningTextprocessReturningText in class MWActions - the answer to the most recently generated MediaWiki API requesthm - the requestor messagepublic HttpAction getNextMessage()
public boolean hasMoreMessages()
hasMoreMessages in interface ContentProcessablehasMoreMessages in class MWActionCopyright © 2013. All Rights Reserved.