@ThreadSafe public final class PollwikiVS extends Object implements Pollwiki
VoteServer.pollwiki()
,
../s/manual.xht#wikiModifier and Type | Class and Description |
---|---|
static class |
PollwikiVS.ConstructionContext
A context for configuring the construction of a PollwikiVS.
|
Constructor and Description |
---|
PollwikiVS(PollwikiVS.ConstructionContext cc)
Partially constructs a PollwikiVS for init to finish.
|
Modifier and Type | Method and Description |
---|---|
StringBuilder |
appendPageSpecifier(String encodedPageName)
Appends an already encoded page name to the wiki base URL.
|
WikiCache |
cache()
The cache of data from this pollwiki's database.
|
javax.ws.rs.core.UriBuilder |
encodePageSpecifier(String pageName)
Encodes a page name and appends it to the wiki base URL.
|
(package private) void |
init(VoteServer vS)
Completes the construction of this PollwikiVS.
|
boolean |
maybeUgly()
Answers whether the wiki URL might be based on the standard access URL ending in
"index.php" for example, or is definitely based on a pretty alias per
$wgUsePathInfo . |
String |
password()
The password for the vote-server's wiki accounts, which go by the username Vobot.
|
PipeRecognizer |
pipeRecognizer()
A recognizer of pipes in the pollwiki.
|
String |
positionPageName(String personName,
String pollName)
Returns the page name of the specified position.
|
int |
revisionSeries()
The identifier of the revision series, which is zero or greater.
|
URI |
scriptURI()
The base location for script execution in the pollwiki, without a trailing slash
(/).
|
URI |
uri()
The base location for requesting pages from the pollwiki.
|
PollwikiVS(PollwikiVS.ConstructionContext cc) throws URISyntaxException
URISyntaxException
void init(VoteServer vS) throws IOException
IOException
public javax.ws.rs.core.UriBuilder encodePageSpecifier(String pageName)
String href = voteServer.pollwiki().encodePageSpecifier( "Main page" ).build().toASCIIString();
appendPageSpecifier(String)
public String password()
public int revisionSeries()
public URI scriptURI()
http://reluk.ca/mediawiki
. Script requests may be constructed by
appending the script path and parameters:scriptURI().toASCIIString() + "/index.php?oldid=1138"
public URI uri()
$wgUsePathInfo
is assumed to be true. Page requests formed on this
base should generally not be redirected by the wiki or relays of Crossforum
Theatre state are likely to fail owing to a URL mismatch.public StringBuilder appendPageSpecifier(String encodedPageName)
Pollwiki
String href = pollwiki.appendPageSpecifier( "Main_page" ).toString();
appendPageSpecifier
in interface Pollwiki
uri()
,
encodePageSpecifier(String)
public boolean maybeUgly()
Pollwiki
$wgUsePathInfo
.public PipeRecognizer pipeRecognizer()
pipeRecognizer
in interface Pollwiki
public String positionPageName(String personName, String pollName)
Pollwiki
positionPageName
in interface Pollwiki
pollName
- this parameter is ignored if the named person is actually a
pipe.PositionID.pageName(String,String,PipeRecognizer)
,
Category:Position