protected static class EmailDeliverer.MessageBodyDataSource extends Object implements DataSource
Modifier and Type | Field and Description |
---|---|
protected String |
body |
protected String |
contentType |
protected static String |
DEFAULT_NAME
The default name of "HtmlMailDataSource" for this message body.
|
Constructor and Description |
---|
MessageBodyDataSource(String body,
String contentType)
Constructor for the message body data source.
|
Modifier and Type | Method and Description |
---|---|
String |
getContentType()
Get the content type for this data source.
|
InputStream |
getInputStream()
Get an input stream for the data source's body.
|
String |
getName()
Get the name of this data source.
|
OutputStream |
getOutputStream()
Get output stream
Not an implemented method.
|
protected static final String DEFAULT_NAME
protected String body
protected String contentType
public String getContentType()
getContentType
in interface DataSource
public InputStream getInputStream() throws IOException
getInputStream
in interface DataSource
IOException
public String getName()
getName
in interface DataSource
DEFAULT_NAME
.public OutputStream getOutputStream() throws IOException
getOutputStream
in interface DataSource
IOException
- Not an implemented method.