com.google.appengine.api.mail
Class MailService.Attachment
- java.lang.Object
- 
- com.google.appengine.api.mail.MailService.Attachment
 
- 
- Enclosing interface:
- MailService
 
 
 public static class MailService.Attachment extends java.lang.Object
- 
- 
Constructor SummaryConstructors Constructor and Description Attachment(java.lang.String fileName, byte[] data)Attachments are an optional part of messages, but if present, all information about them must be provided.Attachment(java.lang.String fileName, byte[] data, java.lang.String contentID)Attachments are an optional part of messages, but if present, all information about them must be provided.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringgetContentID()byte[]getData()Gets the content of this attachment.java.lang.StringgetFileName()Gets the file name of this attachment.
 
- 
- 
- 
Constructor Detail- 
Attachmentpublic Attachment(java.lang.String fileName, byte[] data)Attachments are an optional part of messages, but if present, all information about them must be provided.- Parameters:
- fileName- The attachment must have a filename associated with it. The extension on that filename must be present and white-listed, or there will be a failure at send time.
- data- An array with arbitrary byte content. The array must be be present, but may be of zero length.
- Throws:
- java.lang.IllegalArgumentException- if either fileName or data are missing.
 
 - 
Attachmentpublic Attachment(java.lang.String fileName, byte[] data, java.lang.String contentID)Attachments are an optional part of messages, but if present, all information about them must be provided.- Parameters:
- fileName- The attachment must have a filename associated with it. The extension on that filename must be present and white-listed, or there will be a failure at send time.
- data- An array with arbitrary byte content. The array must be be present, but may be of zero length.
- contentID- The attachment's content ID. May be null.
- Throws:
- java.lang.IllegalArgumentException- if either fileName or data are missing.
 
 
- 
 - 
Method Detail- 
getFileNamepublic java.lang.String getFileName() Gets the file name of this attachment.- Returns:
- The file name of this attachment.
 
 - 
getDatapublic byte[] getData() Gets the content of this attachment.- Returns:
- The raw data of this attachment.
 
 - 
getContentIDpublic java.lang.String getContentID() 
 
- 
 
-