public class MediaWikiClient extends Object
Constructor and Description |
---|
MediaWikiClient() |
MediaWikiClient(String wikiBaseURI) |
Modifier and Type | Method and Description |
---|---|
protected void |
debugShow(String html) |
protected String |
getFormVariable(String html,
String name) |
boolean |
isLoggedIn() |
boolean |
logIn(String user,
String password) |
boolean |
logOut() |
String |
sendRequest(String[] getVars,
String[] postVars) |
boolean |
uploadFile(String fileName,
String summary,
byte[] contents) |
boolean |
uploadFile(String fileName,
String summary,
File file) |
String |
uploadOrPreviewPage(String title,
String contents,
String comment,
boolean previewOnly) |
boolean |
uploadPage(String title,
String contents,
String comment) |
String |
urlEncode(String text) |
public MediaWikiClient()
public MediaWikiClient(String wikiBaseURI)
public boolean isLoggedIn()
public boolean logOut()
public String uploadOrPreviewPage(String title, String contents, String comment, boolean previewOnly)
public String sendRequest(String[] getVars, String[] postVars) throws IOException
IOException
protected void debugShow(String html)
Copyright © 2015–2021 Fiji. All rights reserved.