|
© 2001 BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Remote interface to the MailService stateless session bean. This bean provides basic mail-sending capabilities for sending text email messages.
The smtp server can be specified in the bean's deployment descriptor, or in the application's MailServiceMBean.
| Method Summary | |
void |
addToBatch(MailMessage message,
java.lang.String batch)
Add a MailMessage to a batch so that it can be sent later. |
void |
deleteBatch(java.lang.String batch)
Delete a batch and all of its messages |
java.util.ArrayList |
getBatchNames()
Return all batch names in the system |
int |
getBatchSize(java.lang.String batch)
Return the size of a batch. |
ServletResults |
getJSPResults(java.lang.String url,
java.util.Map params)
Similar to getTextFromJSP; but will retrieve contents of the jsp page as a byte array to cut down on string encoding hassles. |
java.util.ArrayList |
getMessagesInBatch(java.lang.String batchName,
boolean getText)
Retrieve all messages in a batch. |
java.lang.String |
getTextFromJSP(java.lang.String url,
java.util.Map params)
Generate text from a JSP page for use in an email message. |
void |
sendBatch(java.lang.String batch,
boolean delete)
Send all the messages in a batch, optionally deleting the batch when finished. |
void |
sendMail(MailMessage message)
Send an email message immediately. |
void |
sendMail(java.lang.String to,
java.lang.String from,
java.lang.String subject,
java.lang.String text)
The simplest way to send a mail message; supply the basic information and the message will be sent immediately. |
| Methods inherited from interface javax.ejb.EJBObject |
getEJBHome,
getHandle,
getPrimaryKey,
isIdentical,
remove |
| Method Detail |
public void sendMail(java.lang.String to,
java.lang.String from,
java.lang.String subject,
java.lang.String text)
throws java.rmi.RemoteException,
java.lang.IllegalArgumentException
to - The address to mail tofrom - The "from" addresssubject - The message's subject. Can be null.text - The message's text. Can be null.
public void sendMail(MailMessage message)
throws java.rmi.RemoteException,
java.lang.IllegalArgumentException
message - A MailMessage to send.
public void addToBatch(MailMessage message,
java.lang.String batch)
throws java.rmi.RemoteException,
java.lang.IllegalArgumentException
message - A MailMessage to batchbatch - the name of the batch to add it to
public void sendBatch(java.lang.String batch,
boolean delete)
throws java.rmi.RemoteException
batch - the name of the batch to senddelete - if true, will delete the batch after sending it
public void deleteBatch(java.lang.String batch)
throws java.rmi.RemoteException
batch - the name of the batch to delete
public java.util.ArrayList getMessagesInBatch(java.lang.String batchName,
boolean getText)
throws java.rmi.RemoteException
batch - the name of the batch to examinegetText - flag to retrieve message text
public int getBatchSize(java.lang.String batch)
throws java.rmi.RemoteException
batch - the name of the batch to examine
public java.util.ArrayList getBatchNames()
throws java.rmi.RemoteException
public java.lang.String getTextFromJSP(java.lang.String url,
java.util.Map params)
throws java.rmi.RemoteException,
java.io.IOException
url - the URL of the jsp page.params - a map of parameters to pass to the JSP
public ServletResults getJSPResults(java.lang.String url,
java.util.Map params)
throws java.rmi.RemoteException,
java.io.IOException
|
© 2001 BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||