|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectMailResponder
@ThreadSafe public final class MailResponder
The mail responder daemon. The single instance of MailResponder is available via MailResponder.i().
| Nested Class Summary | |
|---|---|
static class |
MailResponder.ConfigurationContext
A context for configuring the mail responder daemon. |
| Field Summary | |
|---|---|
(package private) MailResponder.ConfigurationContext |
cc
|
| Constructor Summary | |
|---|---|
MailResponder()
Creates the single instance of MailResponder, and makes it available via i(). |
|
| Method Summary | |
|---|---|
static JavaScriptIncluder |
compileConfigurationScript(ElectoralSubserver subserver)
Executes the configuration script of the mail responder (without making any configuration calls), thus compiling it for subsequent use. |
(package private) File |
configurationFile()
The configuration file for this responder daemon. |
(package private) static MailResponder |
i()
The single instance of MailResponder. |
(package private) URLName |
inboxStoreURLName()
The protocol and location of the inbox. |
(package private) boolean |
isDryRun()
Returns true if this daemon is to run without making any persistent state changes. |
void |
run()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
MailResponder.ConfigurationContext cc
| Constructor Detail |
|---|
MailResponder()
throws AddressException,
IOException,
ScriptException,
SQLException
AddressException - if misconfigured
ScriptException - if misconfigured
SQLException - if unable to establish initial database connections
IOException| Method Detail |
|---|
static MailResponder i()
public static JavaScriptIncluder compileConfigurationScript(ElectoralSubserver subserver)
throws ScriptException
ScriptExceptionFile configurationFile()
votorolaDirectory/vomailrd.js
The language is JavaScript. There are restrictions on the character encoding.
URLName inboxStoreURLName()
"imap:?" (actually, we're unsure of IMAP syntax, and have not tested it), per:
http://java.sun.com/products/javamail/javadocs/com/sun/mail/imap/package-summary.html
"maildir:/home/subserverName/.mail"
http://javamaildir.sourceforge.net/
"pop3://subserverName:password@host:port" (not yet tested), per:
http://java.sun.com/products/javamail/javadocs/com/sun/mail/pop3/package-summary.html
MailResponder.ConfigurationContext.setInboxStoreURLName(String)boolean isDryRun()
Consequently, each dry run will read the messages of the inbox over and over again, in an endless loop.
MailResponder.ConfigurationContext.setDryRun(boolean)public void run()
run in interface Runnable
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||