|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.soton.itinnovation.grid.service.utils.MailTransport
public class MailTransport
This class accepts batched mails as an ArrayList and send mails via TCP/IP socket.
| Constructor Summary | |
|---|---|
MailTransport(String smtpServerName,
int smtpServerPort)
Construct a Transport object by specifying a host and port. |
|
| Method Summary | |
|---|---|
String |
getSmtpHost()
Returns the SMTP host (ie, smtpServer.coolservlets.com). |
int |
getSmtpPort()
Returns the SMTP port number (usually 25). |
void |
send(ArrayList messages)
send method ------------------------------------------------------------------------- Sends the message by talking to a SMTP port. |
void |
setSmtpHost(String smtpServerName)
Sets the SMTP host. |
void |
setSmtpPort(int smtpServerPort)
Sets the SMTP port number. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MailTransport(String smtpServerName,
int smtpServerPort)
| Method Detail |
|---|
public String getSmtpHost()
public int getSmtpPort()
public void setSmtpHost(String smtpServerName)
public void setSmtpPort(int smtpServerPort)
public void send(ArrayList messages)
throws GridFailureException
GridFailureException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||