public class SSLWiki extends Mediawiki
Modifier and Type | Class and Description |
---|---|
static class |
SSLWiki.IgnoreHostName
avoid ssl issue with hostname check
|
Mediawiki.Method
Modifier and Type | Field and Description |
---|---|
static boolean |
ignoreCertificates |
apiPath, debug, DEFAULT_SCRIPTPATH, format, scriptPath, siteurl, testMode, USER_AGENT, userid, VERSION
LOGGER, protectionMarker, throwExceptionOnError
Constructor and Description |
---|
SSLWiki(String url)
constructor
|
SSLWiki(String url,
String scriptPath)
construct me from an url and scriptPath
|
SSLWiki(String url,
String scriptPath,
String wikiid)
constructor with three params
|
Modifier and Type | Method and Description |
---|---|
String |
getWikiid() |
void |
init()
initialize this wiki
|
void |
init(String siteurl,
String scriptpath)
overrideable e.g for SSL configuration
|
void |
login()
log me in with the configured user
|
void |
setWikiid(String wikiid) |
createAccount, dateToMWTimeStamp, delete, edit, edit, getActionResult, getActionResult, getActionResult, getActionResultText, getAllImagesByTimeStamp, getAllPages, getBacklinks, getEditToken, getFormat, getImageInfo, getImageInfosForPage, getImagesOnPage, getImageUsage, getIsoTimeStamp, getMostRecentChanges, getPageContent, getPageContent, getPageHtml, getPages, getPages, getParamMap, getParse, getPostResponse, getQueryResult, getRecentChanges, getResource, getResponse, getResponseString, getScriptPath, getSections, getSectionText, getSiteInfo, getSiteurl, getStringFromUrl, getTitles, handle, isDebug, isLoggedIn, isVersion128, login, login, login, login, logout, main, maininstance, prepareLogin, setDebug, setFormat, setScriptPath, setSiteurl, setUpSiteInfo, showHelp, showVersion, sortByTitleAndFilterDoubles, upload, upload, upload, usage
copyToWiki, decode, encode, fromXML, getProtectionMarker, getVersion, handleError, handleError, handleError, isThrowExceptionOnError, normalizeTitle, setProtectionMarker, setThrowExceptionOnError, setVersion
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
copyToWiki, getVersion, isThrowExceptionOnError, normalizeTitle, setProtectionMarker, setThrowExceptionOnError
public SSLWiki(String url, String scriptPath) throws Exception
url
- scriptPath
- Exception
public String getWikiid()
public void setWikiid(String wikiid)
wikiid
- the wikiid to setpublic void init(String siteurl, String scriptpath) throws Exception
Mediawiki
init
in interface MediawikiApi
init
in class Mediawiki
siteurl
- - the url to usescriptpath
- - the script path to useException
Copyright © 2018 BITPlan GmbH. All rights reserved.