Class EmailDeliverer.MessageBodyDataSource
java.lang.Object
com.webmethods.caf.faces.data.email.EmailDeliverer.MessageBodyDataSource
- All Implemented Interfaces:
DataSource
- Enclosing class:
- EmailDeliverer
Inner class to EmailDeliverer.
- Since:
- 8.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMessageBodyDataSource
(String body, String contentType) Constructor for the message body data source. -
Method Summary
Modifier and TypeMethodDescriptionGet the content type for this data source.Get an input stream for the data source's body.getName()
Get the name of this data source.Get output stream Not an implemented method.
-
Field Details
-
DEFAULT_NAME
The default name of "HtmlMailDataSource" for this message body.- See Also:
-
body
-
contentType
-
-
Constructor Details
-
MessageBodyDataSource
Constructor for the message body data source.- Parameters:
body
- A body of text content for this source.contentType
- The string that represents a type for this data source.
-
-
Method Details
-
getContentType
Get the content type for this data source.- Specified by:
getContentType
in interfaceDataSource
- Returns:
- String The value that represents a type for this data source.
-
getInputStream
Get an input stream for the data source's body.- Specified by:
getInputStream
in interfaceDataSource
- Returns:
- InputStream An stream from this body. An empty stream if the body is null.
- Throws:
IOException
-
getName
Get the name of this data source.- Specified by:
getName
in interfaceDataSource
- Returns:
- Always returns
DEFAULT_NAME
.
-
getOutputStream
Get output stream Not an implemented method.- Specified by:
getOutputStream
in interfaceDataSource
- Throws:
IOException
- Not an implemented method.
-