|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.kosi.server.MailerInterfaceImpl
The MailerInterfaceImpl can be used to send e-mails.
ChangeLog:
$Log: MailerInterfaceImpl.java,v $ Revision 1.2 2001/06/04 14:21:10 jiriki Made source more comliant to coding guidelines. Revision 1.1.1.1 2001/04/29 18:05:19 jiriki Imported sources from zola. Revision 1.5 2001/04/24 23:19:22 wombat - Implemented I18N features of server - Implemented actions for Admin Client - Other changes is AdminClient Revision 1.4 2001/04/11 17:49:34 wombat Added Serial version id Revision 1.3 2001/04/11 17:40:49 wombat Updated Documentation.
Constructor Summary | |
MailerInterfaceImpl()
Creates a new MailerInterfaceImpl. |
Method Summary | |
java.lang.String |
getHost()
Return the SMTP server, that is used to send mail. |
static MailerInterfaceImpl |
getMailer()
Returns the singleton instance of the MailerInterfaceImpl. |
java.util.Vector |
getMailTextNames()
Return an array containing the names of mails that can be send. |
java.lang.String |
getSenderAddress()
Return the email address, that is used to send mail. |
boolean |
isDebugging()
Wether debug output is printed to stdio. |
void |
sendMail(java.lang.String eMail,
java.lang.String name,
java.util.Locale locale,
java.lang.Object[] params)
Send a Mail. |
void |
sendTestMail(java.lang.String eMail,
java.lang.String textName,
java.util.Locale locale)
Send a test mail. |
void |
setDebug(boolean debug)
Set wether debug output is printed to stdio. |
void |
setHost(java.lang.String hostname)
Set the SMTP server, that is used to send mail. |
void |
setSenderAddress(java.lang.String eMail)
Set the email address, that is used to send mail. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MailerInterfaceImpl()
Method Detail |
public void sendMail(java.lang.String eMail, java.lang.String name, java.util.Locale locale, java.lang.Object[] params) throws javax.mail.MessagingException
java.text.MessageFormat.format()
and the supplied
parameters.eMail
- E-Mail address the mail is sent to.name
- Name of the message. This is used to load the values from the
resources (see above).locale
- The mail is send in.params
- Parameters used to insert data into the mail.javax.mail.MessagingException
- If sending the mail fails.public static MailerInterfaceImpl getMailer()
public boolean isDebugging() throws KosiAccessException, InvalidSessionException
isDebugging
in interface MailerInterface
KosiAccessException
- If called by an user, that has no
administration permission.InvalidSessionException
- If called from an invalid session cotext.public void setDebug(boolean debug) throws KosiAccessException, InvalidSessionException
setDebug
in interface MailerInterface
debug
- True if debug output is to be printed to stdio.KosiAccessException
- If called by an user, that has no
administration permission.InvalidSessionException
- If called from an invalid session cotext.public java.lang.String getHost() throws KosiAccessException, InvalidSessionException
getHost
in interface MailerInterface
KosiAccessException
- If called by an user, that has no
administration permission.InvalidSessionException
- If called from an invalid session cotext.public void setHost(java.lang.String hostname) throws KosiAccessException, InvalidSessionException
setHost
in interface MailerInterface
hostname
- Name of the server.KosiAccessException
- If called by an user, that has no
administration permission.InvalidSessionException
- If called from an invalid session cotext.public java.lang.String getSenderAddress() throws KosiAccessException, InvalidSessionException
getSenderAddress
in interface MailerInterface
KosiAccessException
- If called by an user, that has no
administration permission.InvalidSessionException
- If called from an invalid session cotext.public void setSenderAddress(java.lang.String eMail) throws KosiAccessException, InvalidSessionException
setSenderAddress
in interface MailerInterface
eMail
- EMail address.KosiAccessException
- If called by an user, that has no
administration permission.InvalidSessionException
- If called from an invalid session cotext.public void sendTestMail(java.lang.String eMail, java.lang.String textName, java.util.Locale locale) throws java.rmi.RemoteException, KosiAccessException, InvalidSessionException, javax.mail.MessagingException
sendTestMail
in interface MailerInterface
eMail
- EMail address to send the testmail to.locale
- Locale the message is sent in.textName
- Name of the text to send. This must be one of the Names
returned by getTextNames.java.rmi.RemoteException
- If the remote call fails.KosiAccessException
- If called by an user, that has no
administration permission.InvalidSessionException
- If called from an invalid session cotext.javax.mail.MessagingException
- If the mail could not be send.public java.util.Vector getMailTextNames() throws java.rmi.RemoteException, KosiAccessException, InvalidSessionException
sendTestMail()
.getMailTextNames
in interface MailerInterface
java.rmi.RemoteException
- If the remote call fails.KosiAccessException
- If called by an user, that has no
administration permission.InvalidSessionException
- If called from an invalid session cotext.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |