org.jboss.portal.core.impl.mail
Class MailModuleImpl
java.lang.Object
ServiceMBeanSupport
org.jboss.portal.jems.as.system.AbstractJBossService
org.jboss.portal.core.modules.AbstractModule
org.jboss.portal.core.impl.mail.MailModuleImpl
- All Implemented Interfaces:
- MailModule
public class MailModuleImpl
- extends AbstractModule
- implements MailModule
- Author:
- Julien Viet, Thomas Heute
Field Summary |
java.lang.String |
gateway
The SMTP gateway through which mail will be delivered. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
gateway
public java.lang.String gateway
- The SMTP gateway through which mail will be delivered.
MailModuleImpl
public MailModuleImpl()
- Creates a new
MailModuleImpl
object.
getSMTPConnectionTimeout
public int getSMTPConnectionTimeout()
setSMTPConnectionTimeout
public void setSMTPConnectionTimeout(int SMTPConnectionTimeout)
- Specified by:
setSMTPConnectionTimeout
in interface MailModule
getSMTPTimeout
public int getSMTPTimeout()
setSMTPTimeout
public void setSMTPTimeout(int SMTPTimeout)
- Specified by:
setSMTPTimeout
in interface MailModule
getCurrentSerialId
public long getCurrentSerialId()
getGateway
public java.lang.String getGateway()
setGateway
public void setGateway(java.lang.String gateway)
- Specified by:
setGateway
in interface MailModule
getSmtpUser
public java.lang.String getSmtpUser()
setSmtpUser
public void setSmtpUser(java.lang.String smtpUser)
- Specified by:
setSmtpUser
in interface MailModule
getSmtpPassword
public java.lang.String getSmtpPassword()
setSmtpPassword
public void setSmtpPassword(java.lang.String smtpPassword)
- Specified by:
setSmtpPassword
in interface MailModule
getQueueSize
public int getQueueSize()
listProperties
public java.lang.String listProperties()
flushQueue
public int flushQueue()
getQueueCapacity
public int getQueueCapacity()
setQueueCapacity
public void setQueueCapacity(int queueCapacity)
getJavaMailDebugEnabled
public boolean getJavaMailDebugEnabled()
setJavaMailDebugEnabled
public void setJavaMailDebugEnabled(boolean javaMailDebugEnabled)
- Specified by:
setJavaMailDebugEnabled
in interface MailModule
send
public void send(java.lang.String from,
java.lang.String to,
java.lang.String subject,
java.lang.String body)
- Specified by:
send
in interface MailModule
startService
protected void startService()
throws java.lang.Exception
- Overrides:
startService
in class AbstractModule
- Throws:
java.lang.Exception
stopService
protected void stopService()
throws java.lang.Exception
- Overrides:
stopService
in class AbstractModule
- Throws:
java.lang.Exception
deliver
public boolean deliver(long serialId,
java.lang.String from,
java.lang.String to,
java.lang.String subject,
java.lang.String body)