public class AttachmentResource extends Object
DataSource that is compatible with the javax.mail API.DataSource| Constructor and Description |
|---|
AttachmentResource(String name,
DataSource dataSource)
Constructor; initializes the attachment resource with a name and data.
|
| Modifier and Type | Method and Description |
|---|---|
DataSource |
getDataSource() |
String |
getName() |
public AttachmentResource(String name, DataSource dataSource)
name - The name of the attachment which can be a simple name, a filename or a named embedded image (eg.
<cid:footer>)dataSource - The attachment data.DataSourcepublic DataSource getDataSource()
dataSourceCopyright © 2016. All rights reserved.