@ThreadSafe public final class VOWicket extends WebApplication
Modifier and Type | Class and Description |
---|---|
static class |
VOWicket.ConstructionContext
A context for configuring the web interface.
|
CONFIGURATION
Constructor and Description |
---|
VOWicket() |
Modifier and Type | Method and Description |
---|---|
Authenticator |
authenticator()
The user authenticator for this web interface.
|
static String |
contextPathToVoteServerName(String servletContextPath)
Returns the name of the vote-server associated with the specified context path.
|
CookieManager |
cookieManager()
The default cookie manager for outgoing requests.
|
URI |
defaultPageIcon()
The location of the default page icon.
|
ScheduledExecutorService |
executor()
The general-purpose web executor, an asynchronous executor that runs on a single
thread, the "web executor" thread.
|
static VOWicket |
get()
Returns the intance of VOWicket associated with the current thread.
|
Class<? extends Page> |
getHomePage() |
String |
htmlHeaderInsert()
The site-specific, customized insert for the 'head' section of every HTML page.
|
protected void |
init() |
boolean |
isExecutorThread()
Answers whether the calling thread is the web executor thread.
|
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.
|
URI |
mirroredContextURI()
The absolute URI of the static mirror of the context directory, or null if the
context directory is not statically served.
|
String |
name()
The name that nominally identifies this web interface.
|
static NavBar |
navBar()
The top navigation bar for navigating among the pages of the vote-server.
|
protected IConverterLocator |
newConverterLocator() |
Session |
newSession(Request request,
Response response) |
protected void |
onDestroy() |
WP_Activity.ApplicationScope |
scopeActivity()
The application scope for instances of WP_Activity.
|
WP_Draft.ApplicationScope |
scopeDraft()
The application scope for instances of WP_Draft.
|
String |
serviceEmail()
The email address that nominally identifies the web interface.
|
Spool |
spool()
The spool that is unwound prior to destruction of the web interface.
|
(package private) File |
startupConfigurationFile()
The startup configuration file 'vowicket.js' for this web interface.
|
VoteServer.Run |
vsRun()
The vote-server run for which this web interface is provided.
|
addIgnoreMountPath, getAjaxRequestTargetListeners, getAjaxRequestTargetProvider, getAndRemoveBufferedResponse, getApplicationKey, getConfigurationType, getFilterFactoryManager, getInitParameter, getMimeType, getResourceFinder, getServletContext, getSessionAttributePrefix, getWicketFilter, hasBufferedResponse, hasFilterFactoryManager, internalDestroy, internalInit, logEventTarget, logResponseTarget, mount, mountPackage, mountPage, mountResource, newAjaxRequestTarget, newWebRequest, newWebResponse, outputDevelopmentModeWarning, renderXmlDecl, sessionUnbound, setAjaxRequestTargetProvider, setServletContext, setWicketFilter, storeBufferedResponse, unmount
configure, createRequestCycle, decorateHeaderResponse, exists, fetchCreateAndSetSession, get, getApplicationKeys, getApplicationListeners, getApplicationSettings, getBehaviorInstantiationListeners, getComponentInitializationListeners, getComponentInstantiationListeners, getComponentOnAfterRenderListeners, getComponentPostOnBeforeRenderListeners, getComponentPreOnBeforeRenderListeners, getConverterLocator, getDebugSettings, getExceptionMapperProvider, getExceptionSettings, getFrameworkSettings, getHeaderContributorListenerCollection, getInitializers, getMapperContext, getMarkupSettings, getMetaData, getName, getPageFactory, getPageManagerContext, getPageManagerProvider, getPageRendererProvider, getPageSettings, getRequestCycleListeners, getRequestCycleProvider, getRequestCycleSettings, getRequestLogger, getRequestLoggerSettings, getResourceReferenceRegistry, getResourceSettings, getRootRequestMapper, getRootRequestMapperAsCompound, getSecuritySettings, getSessionListeners, getSessionSettings, getSessionStore, getSessionStoreProvider, getSharedResources, getStoreSettings, initApplication, initializeComponents, newMapperContext, newPageFactory, newRequestLogger, newResourceReferenceRegistry, newSharedResources, onEvent, setApplicationSettings, setDebugSettings, setExceptionSettings, setFrameworkSettings, setHeaderResponseDecorator, setMarkupSettings, setMetaData, setName, setPageManagerProvider, setPageRendererProvider, setPageSettings, setRequestCycleProvider, setRequestCycleSettings, setRequestLoggerSettings, setResourceSettings, setRootRequestMapper, setSecuritySettings, setSessionSettings, setSessionStoreProvider, setStoreSettings, usesDeploymentConfig, usesDevelopmentConfig, validateInit
public VOWicket()
protected void init()
init
in class WebApplication
public Authenticator authenticator()
public static String contextPathToVoteServerName(String servletContextPath)
ServletContext.getContextPath()
public CookieManager cookieManager()
public URI defaultPageIcon()
public ScheduledExecutorService executor()
isExecutorThread()
public String htmlHeaderInsert()
VOWicket.ConstructionContext.setHTMLHeaderInsert(String)
public boolean isExecutorThread()
executor()
public Object mailLock()
@ThreadRestricted("holds mailLock")
.@ThreadRestricted(value="holds mailLock") public MailSender mailSender()
@ThreadRestricted(value="holds mailLock") public Session mailSession()
public URI mirroredContextURI()
public String name()
serviceEmail()
public static NavBar navBar()
public WP_Activity.ApplicationScope scopeActivity()
public WP_Draft.ApplicationScope scopeDraft()
public String serviceEmail()
INTERFACE-NAME@SERVER-NAME
Email authentication messages to users will be sent from this address. The mail meta-service ought to respond helpfully to any message that happens to be sent in reply, to this address.
File startupConfigurationFile()
public final VoteServer.Run vsRun()
public static VOWicket get()
Session.get()
public Class<? extends Page> getHomePage()
getHomePage
in class Application
protected IConverterLocator newConverterLocator()
newConverterLocator
in class Application
public Session newSession(Request request, Response response)
newSession
in class WebApplication
protected void onDestroy()
onDestroy
in class Application