|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.Application
org.apache.wicket.protocol.http.WebApplication
VApplication
@ThreadSafe public final class VApplication
Primary class of the Web-based voter interface.
| Nested Class Summary | |
|---|---|
static class |
VApplication.ConfigurationContext
A context for configuring the Web interface. |
| Field Summary | |
|---|---|
static String |
TEST_USER_EMAIL
The email address of the test user to automatically login, according to system property "votorola.testUserEmail". |
| Fields inherited from class org.apache.wicket.Application |
|---|
CONFIGURATION, CONTEXTPATH, DEPLOYMENT, DEVELOPMENT |
| Constructor Summary | |
|---|---|
VApplication()
|
|
| Method Summary | |
|---|---|
File |
cacheDirectory()
Directory for storage of Web interface files that are generated at runtime, and persisted from run to run. |
(package private) File |
configurationFile()
The scripted configuration file for this Web interface. |
ConsumerManager |
consumerManager()
The OpenID consumer manager. |
String |
getCustomXHTML(String key)
Retrieves the content for a customizeable page section. |
Class |
getHomePage()
|
protected void |
init()
|
Object |
mailLock()
Lock object for mail facilities. |
MailSender |
mailSender()
Access to the SMTP mail transfer service. |
Session |
mailSession()
The mail session for this run of the Web interface. |
String |
name()
The name that nominally identifies this Web interface. |
static NavBar |
navBar()
The top navigation bar, for navigating among the pages of the subserver. |
RequestCycle |
newRequestCycle(Request request,
Response response)
|
Session |
newSession(Request request,
Response response)
|
protected void |
onDestroy()
|
Object |
openIDLock()
Lock object for openID facilities. |
void |
putCustomXHTML(String key,
String xhtml)
Stores the content for a customizeable page section. |
WP_Meta.ApplicationScope |
scopeMeta()
Returns the application scope for instances of WP_Meta. |
SecureRandom |
secureRandomizer()
The secure random number generator. |
String |
serviceEmail()
The email address that nominally identifies the Web interface. |
(package private) Spool |
spool()
Spool unwound prior to destruction of this application. |
String |
styleSheet()
The URL of the subserver's custom style sheet, for site-specific styling of pages. |
ElectoralSubserver.Run |
subserverRun()
The subserver run, for which this Web responder is provided. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String TEST_USER_EMAIL
| Constructor Detail |
|---|
public VApplication()
| Method Detail |
|---|
protected void init()
init in class WebApplicationpublic File cacheDirectory()
This is the same as the subserver cache directory, if that directory is writeable by the electoral services daemon of the Web interface (i.e. the servlet container); otherwise, it is some other, fallback directory.
ElectoralSubserver.cacheDirectory()File configurationFile()
votorolaDirectory/web.js
The language is JavaScript. There are restrictions on the character encoding.
@ThreadRestricted(value="holds openIDLock") public ConsumerManager consumerManager()
public String getCustomXHTML(String key)
putCustomXHTML(String,String)
@ThreadRestricted(value="init")
public void putCustomXHTML(String key,
String xhtml)
The key format is CLASS/ID, where CLASS is the fully qualified class name of the page or panel, and ID is a class-specific identifier. Keys are * pre-defined as Java constants, with names beginning 'XHTML_'. See the javadoc * index for a complete list of valid keys.
This method is restricted to calls from the initWeb method of the configuration script, web.js.
key - the key under which to store the contentxhtml - the content in XHTML formatgetCustomXHTML(String)public Object mailLock()
@ThreadRestricted("holds mailLock").
@ThreadRestricted(value="holds mailLock") public MailSender mailSender()
@ThreadRestricted(value="holds mailLock") public Session mailSession()
public String name()
serviceEmail()public static NavBar navBar()
public Object openIDLock()
@ThreadRestricted("holds openIDLock").
public WP_Meta.ApplicationScope scopeMeta()
@ThreadRestricted(value="holds mailLock") public SecureRandom secureRandomizer()
public String serviceEmail()
VApplication.ConfigurationContext.setName(String)Spool spool()
public String styleSheet()
CustomStyleable,
VApplication.ConfigurationContext.setStyleSheet(String)public final ElectoralSubserver.Run subserverRun()
public Class getHomePage()
getHomePage in class Application
public Session newSession(Request request,
Response response)
newSession in class WebApplication
public RequestCycle newRequestCycle(Request request,
Response response)
newRequestCycle in class WebApplicationprotected void onDestroy()
onDestroy in class Application
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||