|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.mail.MailService
public class MailService
MBean that gives support for JavaMail. Object of class javax.mail.Session will be bound
in JNDI with the name provided with method setJNDIName(java.lang.String)
.
Field Summary | |
---|---|
static String |
JNDI_NAME
|
Fields inherited from class org.jboss.system.ServiceMBeanSupport |
---|
log, server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.mail.MailServiceMBean |
---|
OBJECT_NAME |
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 |
Constructor Summary | |
---|---|
MailService()
|
Method Summary | |
---|---|
Element |
getConfiguration()
Configuration for the mail service. |
String |
getDefaultSender()
|
String |
getJNDIName()
|
protected ObjectName |
getObjectName(MBeanServer server,
ObjectName name)
|
protected String |
getPassword()
Password is write only. |
String |
getPOP3ServerHost()
|
protected Properties |
getProperties()
|
String |
getSMTPServerHost()
|
String |
getStoreProtocol()
|
String |
getTransportProtocol()
|
String |
getUser()
|
boolean |
isSharedSession()
|
void |
setConfiguration(Element element)
Configuration for the mail service. |
void |
setJNDIName(String name)
The JNDI name under which javax.mail.Session objects are bound. |
void |
setPassword(String password)
Password used to connect to a mail server |
void |
setSharedSession(boolean sharedSession)
Set whether a single mail session should be shared across all lookups (sharedSession = true) or a new session created on each lookup (sharedSession = false, the default). |
void |
setUser(String user)
User id used to connect to a mail server |
protected void |
startService()
|
protected void |
stopService()
|
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 |
Methods inherited from interface org.jboss.system.ServiceMBean |
---|
getName, getState, getStateString, jbossInternalLifecycle |
Methods inherited from interface org.jboss.system.Service |
---|
create, destroy, start, stop |
Field Detail |
---|
public static final String JNDI_NAME
Constructor Detail |
---|
public MailService()
Method Detail |
---|
public void setUser(String user)
setUser
in interface MailServiceMBean
setPassword(java.lang.String)
public String getUser()
getUser
in interface MailServiceMBean
public void setPassword(String password)
setPassword
in interface MailServiceMBean
setUser(java.lang.String)
protected String getPassword()
public Element getConfiguration()
getConfiguration
in interface MailServiceMBean
public void setConfiguration(Element element)
setConfiguration
in interface MailServiceMBean
public void setJNDIName(String name)
setJNDIName
in interface MailServiceMBean
public String getJNDIName()
getJNDIName
in interface MailServiceMBean
public boolean isSharedSession()
public void setSharedSession(boolean sharedSession)
sharedSession
- public String getStoreProtocol()
getStoreProtocol
in interface MailServiceMBean
public String getTransportProtocol()
getTransportProtocol
in interface MailServiceMBean
public String getDefaultSender()
getDefaultSender
in interface MailServiceMBean
public String getSMTPServerHost()
getSMTPServerHost
in interface MailServiceMBean
public String getPOP3ServerHost()
getPOP3ServerHost
in interface MailServiceMBean
protected ObjectName getObjectName(MBeanServer server, ObjectName name) throws MalformedObjectNameException
getObjectName
in class ServiceMBeanSupport
MalformedObjectNameException
protected void startService() throws Exception
startService
in class ServiceMBeanSupport
Exception
protected Properties getProperties() throws Exception
Exception
protected void stopService() throws Exception
stopService
in class ServiceMBeanSupport
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |