uk.ac.soton.itinnovation.grid.service.utils
Class MailTransport

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.service.utils.MailTransport

public class MailTransport
extends Object

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

MailTransport

public MailTransport(String smtpServerName,
                     int smtpServerPort)
Construct a Transport object by specifying a host and port.

Method Detail

getSmtpHost

public String getSmtpHost()
Returns the SMTP host (ie, smtpServer.coolservlets.com).


getSmtpPort

public int getSmtpPort()
Returns the SMTP port number (usually 25).


setSmtpHost

public void setSmtpHost(String smtpServerName)
Sets the SMTP host.


setSmtpPort

public void setSmtpPort(int smtpServerPort)
Sets the SMTP port number.


send

public void send(ArrayList messages)
          throws GridFailureException
send method ------------------------------------------------------------------------- Sends the message by talking to a SMTP port.

Throws:
GridFailureException


Copyright © 2001-2008 University of Southampton IT Innovation Centre. All Rights Reserved.