Class Emailer.EmailBodyProvider

java.lang.Object
wt.jmx.core.mbeans.Emailer.EmailBodyProvider
All Implemented Interfaces:
Emailer.EmailContentProvider
Direct Known Subclasses:
Emailer.SimpleTextProvider
Enclosing class:
Emailer

public abstract static class Emailer.EmailBodyProvider extends Object implements Emailer.EmailContentProvider
Convenience implementation of EmailContentProvider interface for use when the e-mail is to consist of a single, simple body part.

Supported API: true

Extendable: true
  • Method Details

    • getMultipart

      public jakarta.mail.Multipart getMultipart() throws Exception
      Uses the results of getMimeType() and getContent() to build and return a single, simple body part.

      Supported API: true
      Specified by:
      getMultipart in interface Emailer.EmailContentProvider
      Throws:
      Exception
    • getMimeType

      public abstract String getMimeType() throws Exception
      Responsible for returning MIME type of body part.

      Supported API: true
      Throws:
      Exception
    • getContent

      public abstract Object getContent() throws Exception
      Responsible for returning body part content object.

      Supported API: true
      Throws:
      Exception