final class AttachmentResource extends Object
DataSource that is compatible with the javax.mail API.DataSource| Modifier and Type | Field and Description |
|---|---|
private DataSource |
dataSource |
private String |
name |
| 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()
Bean getter for
dataSource. |
String |
getName()
Bean getter for
name. |
private final String name
AttachmentResource(String, DataSource)private final DataSource dataSource
AttachmentResource(String, DataSource)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()
dataSource.Copyright © 2009 under Apache v2 license.