wt.jmx.core.mbeans
Class Emailer.EmailBodyProvider

java.lang.Object
  extended by 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 Summary
abstract  Object getContent()
          Responsible for returning body part content object.
abstract  String getMimeType()
          Responsible for returning MIME type of body part.
 Multipart getMultipart()
          Uses the results of getMimeType() and getContent() to build and return a single, simple body part.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMultipart

public 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