|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.bliki.api.MediaWikiComm
public class MediaWikiComm
Sources adopted from the article Add Java extensions to your wiki with permission from Randall Scarberry.
Nested Class Summary | |
---|---|
static class |
MediaWikiComm.ConcurrentEditException
Special case of IOException to be thrown when saving data to the server fails because another user saved data. |
Constructor Summary | |
---|---|
MediaWikiComm(java.lang.String pageURL,
java.lang.String[] cookiePairs)
Constructor |
Method Summary | |
---|---|
info.bliki.api.MediaWikiComm.EditFormData |
loadEditFormData(java.lang.String title)
Method which loads downloads the data from the wiki page. |
boolean |
login(java.lang.String user,
java.lang.String password,
boolean remember)
Log-in |
boolean |
logout()
|
void |
saveData(java.lang.String title,
java.lang.String newEditText)
Saves data back to the wiki page. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MediaWikiComm(java.lang.String pageURL, java.lang.String[] cookiePairs)
pageURL
- the page URLcookiePairs
- cookies to be included in every server requestMethod Detail |
---|
public info.bliki.api.MediaWikiComm.EditFormData loadEditFormData(java.lang.String title) throws java.io.IOException
java.io.IOException
public void saveData(java.lang.String title, java.lang.String newEditText) throws java.io.IOException
settings
- an array of ClusteringDemoSetting
s object, which
are converted into a block of XML and embedded on the page.
java.io.IOException
public boolean login(java.lang.String user, java.lang.String password, boolean remember) throws UnexpectedAnswerException, MethodException
loginUrl
- actionUrl
- user
- password
- remember
-
true
is the login succeeds
UnexpectedAnswerException
MethodException
public boolean logout() throws UnexpectedAnswerException, MethodException
UnexpectedAnswerException
MethodException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |