com.jfw.probe
Class ProbeUtil

java.lang.Object
  extended by com.jfw.probe.ProbeUtil

public final class ProbeUtil
extends java.lang.Object

Utilities methods for probes. The methods are static and thread safe.


Constructor Summary
ProbeUtil()
           
 
Method Summary
static void sendEmail(java.lang.String sender, java.lang.String receivers, java.lang.String object, java.lang.String text, java.util.HashMap mailParams)
          Send an email.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProbeUtil

public ProbeUtil()
Method Detail

sendEmail

public static void sendEmail(java.lang.String sender,
                             java.lang.String receivers,
                             java.lang.String object,
                             java.lang.String text,
                             java.util.HashMap mailParams)
Send an email. Use the default parameters of mail server from jfw.properties.

Parameters:
sender - the the mail sender.
receivers - the mail receivers.
object - the mail object.
text - the the mail text.
mailParams - paramaters values, if any, to substitute in mail text. The parameters in text mail must be compatible with Parser.