|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.configuration.AbstractConfigBean
org.torweg.pulse.email.MailQueueConfiguration
public class MailQueueConfiguration
the configuration for the MailQueue.
| Constructor Summary | |
|---|---|
MailQueueConfiguration()
|
|
| Method Summary | |
|---|---|
long |
getInterval()
returns the interval for sending sessions in milliseconds. |
java.lang.String |
getPassword()
returns the password to be used for authenticating at the MTA. |
int |
getPort()
returns the port on which the MTA is listening. |
java.lang.String |
getProtocol()
returns the protocol with which to send e-mails. |
java.lang.String |
getServer()
returns the server name of the MTA. |
java.io.File |
getTempDir()
the temporary directory to serialise/deserialise the queue on starts and stops. |
java.lang.String |
getUser()
returns the user to be used for authenticating at the MTA. |
void |
init(org.jdom.Element conf)
initialises the configuration. |
void |
setPulseRootDir(java.io.File d)
sets the pulse container's root directory. |
| Methods inherited from class org.torweg.pulse.configuration.AbstractConfigBean |
|---|
buildClass, buildInstance, lastModified, setLastModified |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MailQueueConfiguration()
| Method Detail |
|---|
public final void init(org.jdom.Element conf)
The configuration is part of the pulse.xml:
... <mail-queue interval="10000"> <protocol>smtp</protocol> <server port="25">localhost</server> <user>mail-user</user> <password>pass</password> <temporary-directory>/tmp</temporary-directory> </mail-queue> ...
conf - the configuration element.public final void setPulseRootDir(java.io.File d)
d - the root directorypublic final java.lang.String getProtocol()
public final int getPort()
public final java.lang.String getServer()
public final java.io.File getTempDir()
public final java.lang.String getUser()
null, if the MTA does not require
authenticationpublic final java.lang.String getPassword()
public long getInterval()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||