Utente:Outer bot/Javadoc
Vai alla navigazione
Vai alla ricerca
it.wikipedia.org
it.wikipedia.org
Class OuterBot
java.lang.Object |-net.sourceforge.jwbf.bots.HttpBot |-net.sourceforge.jwbf.bots.MediaWikiBot |-it.wikipedia.org.OuterBot
public class OuterBot extends net.sourceforge.jwbf.bots.MediaWikiBot
- Author:
- Outer_root
Field Summary |
---|
Fields inherited from class net.sourceforge.jwbf.bots.MediaWikiBot |
---|
ARTICLE, CHARSET, MEDIA, SUBCATEGORY |
Constructor Summary | |
---|---|
OuterBot (java.lang.String path)
|
Method Summary | |
---|---|
net.sourceforge.jwbf.contentRep.mw.SimpleArticle |
<A HREF="../../../it/wikipedia/org/OuterBot.html#getArticle(java.lang.String)">getArticle</A>(java.lang.String name)
|
java.lang.String |
<A HREF="../../../it/wikipedia/org/OuterBot.html#getArticleName(net.sourceforge.jwbf.contentRep.mw.SimpleArticle)">getArticleName</A>(net.sourceforge.jwbf.contentRep.mw.SimpleArticle article)
|
java.lang.String |
<A HREF="../../../it/wikipedia/org/OuterBot.html#getArticleText(java.lang.String)">getArticleText</A>(java.lang.String name)
|
void |
<A HREF="../../../it/wikipedia/org/OuterBot.html#login()">login</A>()
|
void |
<A HREF="../../../it/wikipedia/org/OuterBot.html#replaceAllText(net.sourceforge.jwbf.contentRep.mw.SimpleArticle, java.lang.String, java.lang.String)">replaceAllText</A>(net.sourceforge.jwbf.contentRep.mw.SimpleArticle article, java.lang.String text, java.lang.String oggetto)
|
void |
<A HREF="../../../it/wikipedia/org/OuterBot.html#replaceText(net.sourceforge.jwbf.contentRep.mw.SimpleArticle, java.lang.String, java.lang.String, java.lang.String)">replaceText</A>(net.sourceforge.jwbf.contentRep.mw.SimpleArticle article, java.lang.String textToSubstitute, java.lang.String textThanSubstitute, java.lang.String oggetto)
|
void |
<A HREF="../../../it/wikipedia/org/OuterBot.html#writeNewParagraph(net.sourceforge.jwbf.contentRep.mw.SimpleArticle, int, java.lang.String, java.lang.String)">writeNewParagraph</A>(net.sourceforge.jwbf.contentRep.mw.SimpleArticle article, int level, java.lang.String title, java.lang.String text)
|
void |
<A HREF="../../../it/wikipedia/org/OuterBot.html#writeSimpleText(net.sourceforge.jwbf.contentRep.mw.SimpleArticle, java.lang.String, java.lang.String)">writeSimpleText</A>(net.sourceforge.jwbf.contentRep.mw.SimpleArticle article, java.lang.String text, java.lang.String oggetto)
|
void |
<A HREF="../../../it/wikipedia/org/OuterBot.html#writeSimpleText(net.sourceforge.jwbf.contentRep.mw.SimpleArticle, java.lang.String, java.lang.String, boolean)">writeSimpleText</A>(net.sourceforge.jwbf.contentRep.mw.SimpleArticle article, java.lang.String text, java.lang.String oggetto, boolean isMinorEdit)
|
Methods inherited from class net.sourceforge.jwbf.bots.MediaWikiBot |
---|
getAllPageTitles, getAllPageTitles, getAllPageTitles, getBacklinkTitles, getBacklinkTitles, getCategoryMembers, getFullCategoryMembers, getImagelinkTitles, getImagelinkTitles, getLogEvents, getLogEvents, getRecentchangesTitles, getRecentchangesTitles, getSiteinfo, getTemplateUserTitles, getTemplateUserTitles, httpLogin, isLoggedIn, login, readContent, readContent, setVersionValidation, writeContent, writeMultContent |
Methods inherited from class net.sourceforge.jwbf.bots.HttpBot |
---|
getClient, getPage, performAction, setConnection, setConnection, setConnection |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
OuterBot
public <B>OuterBot</B>(java.lang.String path) throws java.net.MalformedURLException
- Costruttore da superclasse
- Parameters:
String
- path - Il dominio di wiki su cui viene istanziato il bot- Throws:
java.net.MalformedURLException
Method Detail |
---|
login
public void <B>login</B>() throws net.sourceforge.jwbf.actions.http.ActionException
- Fa fare il login al bot
- Throws:
net.sourceforge.jwbf.actions.http.ActionException
getArticleText
public java.lang.String <B>getArticleText</B>(java.lang.String name) throws net.sourceforge.jwbf.actions.http.ActionException, net.sourceforge.jwbf.actions.http.ProcessException
- Throws:
net.sourceforge.jwbf.actions.http.ActionException
net.sourceforge.jwbf.actions.http.ProcessException
getArticleName
public java.lang.String <B>getArticleName</B>(net.sourceforge.jwbf.contentRep.mw.SimpleArticle article)
- Restituisce il vero nome dell'articolo (cioè non il titolo visualizzato sulla barra del browser ma il nome fisico presente nella location bar del browser). Quindi se è stato usato un template per manipolare il titolo dell'articolo, questo metodo non ne viene influenzato.
- Parameters:
article
- - SimpleArticle- Returns:
- il nome dell'articolo come riportato nella location bar dopo .../wiki/ - String
getArticle
public net.sourceforge.jwbf.contentRep.mw.SimpleArticle <B>getArticle</B>(java.lang.String name) throws net.sourceforge.jwbf.actions.http.ActionException, net.sourceforge.jwbf.actions.http.ProcessException
- Throws:
net.sourceforge.jwbf.actions.http.ActionException
net.sourceforge.jwbf.actions.http.ProcessException
writeSimpleText
public void <B>writeSimpleText</B>(net.sourceforge.jwbf.contentRep.mw.SimpleArticle article, java.lang.String text, java.lang.String oggetto) throws net.sourceforge.jwbf.actions.http.ActionException, net.sourceforge.jwbf.actions.http.ProcessException
- Throws:
net.sourceforge.jwbf.actions.http.ActionException
net.sourceforge.jwbf.actions.http.ProcessException
writeSimpleText
public void <B>writeSimpleText</B>(net.sourceforge.jwbf.contentRep.mw.SimpleArticle article, java.lang.String text, java.lang.String oggetto, boolean isMinorEdit) throws net.sourceforge.jwbf.actions.http.ActionException, net.sourceforge.jwbf.actions.http.ProcessException
- Throws:
net.sourceforge.jwbf.actions.http.ActionException
net.sourceforge.jwbf.actions.http.ProcessException
replaceAllText
public void <B>replaceAllText</B>(net.sourceforge.jwbf.contentRep.mw.SimpleArticle article, java.lang.String text, java.lang.String oggetto) throws net.sourceforge.jwbf.actions.http.ActionException, net.sourceforge.jwbf.actions.http.ProcessException
- Throws:
net.sourceforge.jwbf.actions.http.ActionException
net.sourceforge.jwbf.actions.http.ProcessException
replaceText
public void <B>replaceText</B>(net.sourceforge.jwbf.contentRep.mw.SimpleArticle article, java.lang.String textToSubstitute, java.lang.String textThanSubstitute, java.lang.String oggetto) throws net.sourceforge.jwbf.actions.http.ActionException, net.sourceforge.jwbf.actions.http.ProcessException, java.lang.NullPointerException
- Throws:
net.sourceforge.jwbf.actions.http.ActionException
net.sourceforge.jwbf.actions.http.ProcessException
java.lang.NullPointerException
writeNewParagraph
public void <B>writeNewParagraph</B>(net.sourceforge.jwbf.contentRep.mw.SimpleArticle article, int level, java.lang.String title, java.lang.String text) throws net.sourceforge.jwbf.actions.http.ActionException, net.sourceforge.jwbf.actions.http.ProcessException
- Throws:
net.sourceforge.jwbf.actions.http.ActionException
net.sourceforge.jwbf.actions.http.ProcessException