A C G M O P R S T 

A

action(String) - Method in class org.mediawiki.api.json.Api
Start building a request for a particular action.
Api - Class in org.mediawiki.api.json
Client wrapper for connecting to a MediaWiki installation's API.
Api(String) - Constructor for class org.mediawiki.api.json.Api
Create an Api object with given only hostname.
Api(String, String) - Constructor for class org.mediawiki.api.json.Api
Create an Api object with given only hostname and user agent.
Api(String, String, HashMap<String, String>) - Constructor for class org.mediawiki.api.json.Api
Create an Api object with given only hostname, custom headers, and user agent.
Api(String, HashMap<String, String>) - Constructor for class org.mediawiki.api.json.Api
Create an Api object with given only hostname and custom headers.
Api(String, boolean) - Constructor for class org.mediawiki.api.json.Api
Create an Api object with given only hostname and whether to use HTTPS or not.
Api(String, boolean, String) - Constructor for class org.mediawiki.api.json.Api
Create an Api object with given only hostname, whether to use HTTPS or not, and endpoint path.
Api(String, boolean, String, HashMap<String, String>) - Constructor for class org.mediawiki.api.json.Api
Create an Api object
ApiException - Exception in org.mediawiki.api.json
Wrapper exception thrown whenever there's an unrecoverable error from the Api.
ApiException(Exception) - Constructor for exception org.mediawiki.api.json.ApiException
 
ApiException(String, String) - Constructor for exception org.mediawiki.api.json.ApiException
 
ApiResult - Class in org.mediawiki.api.json
Encapsulates the result of performing an API call.
asArray() - Method in class org.mediawiki.api.json.ApiResult
Start the network request & return the response as a JSON Array.
asObject() - Method in class org.mediawiki.api.json.ApiResult
Start the network request & return the response as a JSON Object.

C

cancel() - Method in class org.mediawiki.api.json.ApiResult
Disconnect the request if it is in progress.

G

get() - Method in class org.mediawiki.api.json.RequestBuilder
Sets up a GET request using the parameters so far specified.
getApiUrl() - Method in class org.mediawiki.api.json.Api
Returns the full Url to which API requests are directed.
getCode() - Method in exception org.mediawiki.api.json.ApiException
 
getHeaders() - Method in class org.mediawiki.api.json.ApiResult
Get the Map of headers returned for the response.
getInfo() - Method in exception org.mediawiki.api.json.ApiException
 
getParams() - Method in class org.mediawiki.api.json.RequestBuilder
 

M

METHOD_GET - Static variable in class org.mediawiki.api.json.Api
Parameter to Api.setupRequest(int, RequestBuilder), performs GET request.
METHOD_POST - Static variable in class org.mediawiki.api.json.Api
Parameter to Api.setupRequest(int, RequestBuilder), performs POST request.

O

onHeaderCheck(ApiResult, URL) - Method in interface org.mediawiki.api.json.OnHeaderCheckListener
 
OnHeaderCheckListener - Interface in org.mediawiki.api.json
 
org.mediawiki.api.json - package org.mediawiki.api.json
Client wrapper for connecting to a MediaWiki installation's API.

P

param(String, String) - Method in class org.mediawiki.api.json.RequestBuilder
Add a parameter to the current request.
post() - Method in class org.mediawiki.api.json.RequestBuilder
Sets up a POST request using the parameters so far specified.
processHeaders(ApiResult) - Method in class org.mediawiki.api.json.Api
 

R

RequestBuilder - Class in org.mediawiki.api.json
Fluent interface to easily build up an API request from params.

S

setConnectionFactory(HttpRequest.ConnectionFactory) - Static method in class org.mediawiki.api.json.Api
Set the connection factory used to construct connections.
setHeaderCheckListener(OnHeaderCheckListener) - Method in class org.mediawiki.api.json.Api
 
setupRequest(int, RequestBuilder) - Method in class org.mediawiki.api.json.Api
Sets up the HTTP request that needs to be made to produce results for this API query.

T

toString() - Method in exception org.mediawiki.api.json.ApiException
 
A C G M O P R S T