@ThreadSafe public static final class VOFaceMail.ConstructionContext extends Object
Modifier and Type | Method and Description |
---|---|
static VOFaceMail.ConstructionContext |
configure(VoteServer voteServer,
JavaScriptIncluder s)
Constructs the complete configuration of the mail interface.
|
int |
getInboxPollSleepSeconds() |
String |
getInboxStoreURLName() |
boolean |
isDryRun() |
void |
setDryRun(boolean newDryRun)
Sets whether the interface is to run without making any
persistent state changes.
|
void |
setInboxPollSleepSeconds(int inboxPollSleepSeconds)
Sets the delay prior to each poll of the inbox.
|
void |
setInboxStoreURLName(String inboxStoreURLName)
Sets the protocol and location of the inbox.
|
SMTPTransportX.ConstructionContext |
transferService()
The context for configuring access to the mail transfer server,
through which outgoing messages (such as replies to voters) are sent.
|
public static VOFaceMail.ConstructionContext configure(VoteServer voteServer, JavaScriptIncluder s) throws ScriptException
s
- the compiled startup configuration script.ScriptException
public int getInboxPollSleepSeconds()
@ThreadRestricted(value="constructor") public void setInboxPollSleepSeconds(int inboxPollSleepSeconds)
VOFaceMail.inboxPollSleepSeconds()
public String getInboxStoreURLName()
@ThreadRestricted(value="constructor") public void setInboxStoreURLName(String inboxStoreURLName)
"maildir:/home/" + voteServer.name() + "/Maildir"
VOFaceMail.inboxStoreURLName()
public final boolean isDryRun()
VOFaceMail.isDryRun()
,
setDryRun(boolean)
public final void setDryRun(boolean newDryRun)
VOFaceMail.isDryRun()
public SMTPTransportX.ConstructionContext transferService()