当前页面:
在线文档首页 >
JBOSS Portal 2.4 API 英文版文档
MailModuleImpl - JBOSS Portal 2.4 API 英文版文档
org.jboss.portal.core.impl.mail
Class MailModuleImpl
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.portal.common.system.AbstractJBossService
org.jboss.portal.core.modules.AbstractModule
org.jboss.portal.core.impl.mail.MailModuleImpl
- All Implemented Interfaces:
- MailModule, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, org.jboss.system.Service, org.jboss.system.ServiceMBean
- public class MailModuleImpl
- extends AbstractModule
- implements MailModule
Field Summary |
java.lang.String |
gateway
The SMTP gateway through which mail will be delivered. |
Fields inherited from class org.jboss.system.ServiceMBeanSupport |
server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.system.ServiceMBean |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Methods inherited from class org.jboss.system.ServiceMBeanSupport |
createService, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification |
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 int 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(int serialId,
java.lang.String from,
java.lang.String to,
java.lang.String subject,
java.lang.String body)