wt.jmx.core.mbeans
Class Emailer.SimpleTextProvider

java.lang.Object
  extended by wt.jmx.core.mbeans.Emailer.EmailBodyProvider
      extended by wt.jmx.core.mbeans.Emailer.SimpleTextProvider
All Implemented Interfaces:
Emailer.EmailContentProvider
Enclosing class:
Emailer

public static final class Emailer.SimpleTextProvider
extends Emailer.EmailBodyProvider

Specialization of EmailBodyProvider for text whose type and contents are known at time of construction. [This class does not leverage the just-in-time aspects allowed by the EmailBodyProvider interface.]

Supported API: true

Extendable: true


Constructor Summary
Emailer.SimpleTextProvider(String contentString)
          Assumes 'contentString' is plain UTF-8 text.
Emailer.SimpleTextProvider(String contentString, String mimeType)
          Constructor which allows specification of MIME type.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Emailer.SimpleTextProvider

public Emailer.SimpleTextProvider(String contentString)
Assumes 'contentString' is plain UTF-8 text.

Supported API: true

Parameters:
contentString - Intended text of e-mail, assumed to be plain, UTF-8

Emailer.SimpleTextProvider

public Emailer.SimpleTextProvider(String contentString,
                                  String mimeType)
Constructor which allows specification of MIME type.

Supported API: true

Parameters:
contentString - Intended text of e-mail
mimeType - MIME type of e-mail text