|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.mx.util.JBossNotificationBroadcasterSupport org.jboss.system.ServiceMBeanSupport org.jboss.net.axis.transport.mailto.AbstractMailTransportService
Field Summary | |
static String |
ENGINE_NAME
|
static String |
FOLDER_NAME
|
static String |
SESSION_NAME
|
Fields inherited from class org.jboss.system.ServiceMBeanSupport |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.net.axis.transport.mailto.MailConstants |
HEADER_CONTENT_TRANSFER_ENCODING, HEADER_CONTENT_TYPE, HEADER_FROM, HEADER_IN_REPLY_TO, HEADER_MESSAGE_ID, HEADER_TO |
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 | |
AbstractMailTransportService()
|
Method Summary | |
protected void |
closeFolder(javax.mail.Folder folder)
This closes a mail folder and handles exceptions by pretending they didn't happen. |
protected void |
closeStore(javax.mail.Store store)
This closes the mail store and suppresses any exceptions. |
protected javax.mail.Message[] |
fetchMessages(javax.mail.Folder folder)
Lets preload some information about our mail messages into message objects. |
boolean |
getDeleteMail()
|
String |
getEngineName()
|
String |
getFolderName()
|
protected javax.mail.Folder |
getMailFolder(javax.mail.Store store)
|
protected javax.mail.Session |
getMailSession()
Fetch the mail session stored in jndi. |
protected javax.mail.Store |
getMailStore(javax.mail.Session mail)
|
String |
getSessionName()
|
void |
pollMail()
Check our pop mail box for new emails. |
protected abstract void |
processMessages(javax.mail.Message[] msgs)
|
void |
setDeleteMail(boolean delete)
Flag instructing the transport to delete processed messages, or not. |
void |
setEngineName(String name)
The jndi name under which the org.apache.axis.server.AxisServer object is stored. |
void |
setFolderName(String name)
The name of the folder in which the SOAP messages will reside (likely INBOX). |
void |
setSessionName(String name)
The jndi name under which the javax.mail.Session object is stored. |
Methods inherited from class org.jboss.system.ServiceMBeanSupport |
create, createService, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, startService, stop, stopService |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String FOLDER_NAME
public static final String SESSION_NAME
public static final String ENGINE_NAME
Constructor Detail |
public AbstractMailTransportService()
Method Detail |
public void setSessionName(String name)
public String getSessionName()
public void setFolderName(String name)
public String getFolderName()
public void setEngineName(String name)
public String getEngineName()
public void setDeleteMail(boolean delete)
public boolean getDeleteMail()
public void pollMail()
protected abstract void processMessages(javax.mail.Message[] msgs)
protected javax.mail.Session getMailSession()
protected javax.mail.Store getMailStore(javax.mail.Session mail)
protected javax.mail.Folder getMailFolder(javax.mail.Store store)
protected javax.mail.Message[] fetchMessages(javax.mail.Folder folder)
protected void closeStore(javax.mail.Store store)
store
- protected void closeFolder(javax.mail.Folder folder)
folder
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |