Skip to content

Commit

Permalink
provide better resource naming to mime message and when parsing mime …
Browse files Browse the repository at this point in the history
…message
  • Loading branch information
bbottema committed Jul 22, 2016
1 parent 1ef21af commit a466d26
Show file tree
Hide file tree
Showing 4 changed files with 478 additions and 347 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import javax.activation.DataSource;

/**
* A named immutable email attachment information object. The name can be a simple name, a filename or a named embedded image (eg. <cid:footer>). Contains
* a {@link DataSource} that is compatible with the javax.mail API.
* A named immutable email attachment information object. The name can be a simple name, a filename or a named embedded image (eg.
* <cid:footer>). Contains a {@link DataSource} that is compatible with the javax.mail API.
*
* @author Benny Bottema
* @see DataSource
Expand All @@ -24,8 +24,9 @@ public class AttachmentResource {
/**
* Constructor; initializes the attachment resource with a name and data.
*
* @param name The name of the attachment which can be a simple name, a filename or a named embedded image (eg. <cid:footer>)
* @param dataSource The attachment data.
* @param name The name of the attachment which can be a simple name, a filename or a named embedded image (eg. <cid:footer>). Leave
* <code>null</code> to fall back on {@link DataSource#getName()}.
* @param dataSource The attachment data. If no name was provided, the name of this datasource is used if provided.
* @see DataSource
*/
public AttachmentResource(final String name, final DataSource dataSource) {
Expand Down
Loading

0 comments on commit a466d26

Please sign in to comment.