|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.wcb.autohome.implementations.EmailHeaderBean
Copyright (C) 1999 Walter Bogaardt This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 EmailHeaderBean.java Created on February 2, 2004, 7:59 PM
Constructor Summary | |
EmailHeaderBean(java.lang.String sTo,
java.lang.String sFrom,
java.lang.String sHost)
This class is suppose to be a wrapper for the interfaces between the AutoHomeSession and the HAGateway and the final properties file. |
Method Summary | |
EmailAuthenticator |
getEmailAuthenticator()
Gets the email authenticator object. |
java.lang.String |
getEmailFromAddress()
Returns the email from address from the HASConfig.ini file |
java.lang.String |
getEmailHost()
The user's email smtp host that is used to send email messages through. |
java.lang.String |
getEmailNoticeFreq()
Email Notice frequency which is either never, on event, hourly, 12 hours, daily, weekly. |
java.lang.String |
getEmailToAddress()
Gets the email address that notifications are sent to, and which the user has saved through configuring it. |
void |
setEmailAuthenticator(EmailAuthenticator auth)
Allows setting of email authentication since the user email account may require authentication |
void |
setEmailFromAddress(java.lang.String sFrom)
This sets the from address in the email so it does not always have to come from the default address of alice@localhost The user can set this to what ever address they want. |
void |
setEmailHost(java.lang.String sHost)
The user can save the SMTP host to the HASConfig.ini file. |
void |
setEmailNoticeFreq(java.lang.String sFreq)
Allows the user to save the frequency of events as never, on event, hourly, 12 hours, daily, weekly. |
void |
setEmailToAddress(java.lang.String sTo)
Gets the email address that notifications are sent to, and which the user has saved through configuring it. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EmailHeaderBean(java.lang.String sTo, java.lang.String sFrom, java.lang.String sHost)
sTo
- the to address for emailsFrom
- the from address for emailsHost
- the smtp host addressMethod Detail |
public void setEmailToAddress(java.lang.String sTo)
sTo
- send to addresspublic void setEmailFromAddress(java.lang.String sFrom)
sFrom
- user defined email from addresspublic void setEmailHost(java.lang.String sHost)
sHost
- Email host addresspublic void setEmailAuthenticator(EmailAuthenticator auth)
auth
- The email authenticator object which extends the Java mail Authenticatorpublic void setEmailNoticeFreq(java.lang.String sFreq)
sFreq
- never, onevent, hourly, 12hours, daily, weeklypublic java.lang.String getEmailToAddress()
public java.lang.String getEmailFromAddress()
public java.lang.String getEmailHost()
public EmailAuthenticator getEmailAuthenticator()
public java.lang.String getEmailNoticeFreq()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |