uk.org.ogsadai.activity.delivery
Class DeliverToSMTPActivity

java.lang.Object
  |
  +--uk.org.ogsadai.engine.Activity
        |
        +--uk.org.ogsadai.activity.delivery.DeliverToSMTPActivity

public class DeliverToSMTPActivity
extends Activity

This Activity delivers data from the OGSA-DAI stream to an email address.

Author:
The OGSA-DAI Project Team

Field Summary
 
Fields inherited from class uk.org.ogsadai.engine.Activity
mContext, mExternalInputs, mExternalOutputs, mInternalInputs, mInternalOutputs
 
Constructor Summary
DeliverToSMTPActivity(org.w3c.dom.Element element)
          Parse the perform document's parameters.
 
Method Summary
 void initialise()
          This method can be overridden by subclasses to perform any initialisation they require before the process method iterations begin.
 void processBlock()
          Send the data to the SMTP server.
 void processFirst()
          Do a bit of SMTP negotiation and send the SMTP headers to the server.
 
Methods inherited from class uk.org.ogsadai.engine.Activity
cleanUp, connectsTo, getActivityConfiguration, getName, getObservableStatus, getProperties, getStatus, hasActivityConfiguration, hasProperties, setCompleted, setError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeliverToSMTPActivity

public DeliverToSMTPActivity(org.w3c.dom.Element element)
                      throws ActivityUserException,
                             ActivitySystemException
Parse the perform document's parameters.

Parameters:
element - the perform document
Throws:
ActivityUserException
ActivitySystemException
Method Detail

initialise

public void initialise()
                throws ActivityUserException
Description copied from class: Activity
This method can be overridden by subclasses to perform any initialisation they require before the process method iterations begin. This might be used for setting up convenient fields to reference objects contained in the context. It shouldn't be used for opening resources. That should be done in processFirst.

Overrides:
initialise in class Activity
Throws:
ActivityUserException - If a user problem prevents the activity from initialising.
See Also:
Activity.initialise()

processFirst

public void processFirst()
Do a bit of SMTP negotiation and send the SMTP headers to the server.

Overrides:
processFirst in class Activity

processBlock

public void processBlock()
Send the data to the SMTP server.

Specified by:
processBlock in class Activity
See Also:
Activity.processBlock()