Class Emailer.SimpleTextProvider

java.lang.Object
wt.jmx.core.mbeans.Emailer.EmailBodyProvider
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 Details

    • SimpleTextProvider

      public 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
    • SimpleTextProvider

      public 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