|
Oracle BI Publisher Java API Reference Release 10.1.3.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
MimeMultipart
oracle.apps.xdo.delivery.smtp.Attachment
public class Attachment
This is a utility class to allow users to create multiple attachments easily for the email. <p/> It is like an array of attachments. It allows users to add multiple documents that users want to attach to the email, then users can attach this object to the email delivery request as a set of attachments. <p/> See DeliveryManager javadoc for more detail. <p/>
DeliveryManager
Field Summary | |
---|---|
static java.lang.String |
RCS_ID |
static boolean |
RCS_ID_RECORDED |
Fields inherited from interface oracle.apps.xdo.delivery.smtp.SMTPPropertyDefinitions |
---|
SMTP_ATTACHMENT, SMTP_ATTACHMENT_FIRST, SMTP_BCC_RECIPIENTS, SMTP_CC_RECIPIENTS, SMTP_CHARACTER_ENCODING, SMTP_CHARSET, SMTP_CONTENT_DISPOSITION, SMTP_CONTENT_FILENAME, SMTP_CONTENT_TYPE, SMTP_CURRENT_DIRECTORY, SMTP_DIRECTORY_MAPPINGS, SMTP_ENCODING, SMTP_FROM, SMTP_HOST, SMTP_PASSWORD, SMTP_PORT, SMTP_REPLY_TO, SMTP_SUBJECT, SMTP_TO_RECIPIENTS, SMTP_USERNAME |
Constructor Summary | |
---|---|
Attachment() Constructor. |
|
Attachment(DataSource pDataSource) Constructor with the data source. |
Method Summary | |
---|---|
java.io.OutputStream |
addAttachment(java.lang.String pFileName, java.lang.String pContentType) Deprecated. It returns null now. Use other addAttachment() methods with using InputStream or filename to specify the document to deliver. |
void |
addAttachment(java.lang.String pFileName, java.lang.String pContentType, java.io.InputStream pBody) Adds a file as an attachment. |
java.io.OutputStream |
addAttachment(java.lang.String pFileName, java.lang.String pContentType, MimeBodyPart pMimeBody, int pIndex) Deprecated. It returns null now. Use other addAttachment() methods with using InputStream or filename to specify the document to deliver. |
void |
addAttachment(java.lang.String pSourceFileName, java.lang.String pFileName, java.lang.String pContentType) Adds a file as an attachment. |
void |
addHtmlAttachment(java.io.InputStream pHtmlDocument, java.lang.String pFileName, java.lang.String pCurrentDir, MimeBodyPart pBodyPart, java.util.Hashtable pDirMappings) Adds a HTML file as an attachment. |
void |
addHtmlAttachment(java.io.InputStream pHtmlDocument, java.lang.String pFileName, java.lang.String pCurrentDir, MimeBodyPart pBodyPart, java.util.Hashtable pDirMappings, int pIndex, java.lang.String pDisposition) |
void |
addHtmlAttachment(java.io.InputStream pHtmlDocument, java.lang.String pFileName, java.lang.String pContentType, java.lang.String pCurrentDir, MimeBodyPart pBodyPart, java.util.Hashtable pDirMappings, int pIndex, java.lang.String pDisposition) |
void |
addHtmlAttachment(java.io.InputStream pHtmlDocument, java.lang.String pFileName, java.lang.String pContentType, java.lang.String pCurrentDir, MimeBodyPart pBodyPart, java.util.Hashtable pDirMappings, int pIndex, java.lang.String pDisposition, boolean deleteImages) |
void |
addHtmlAttachment(java.lang.String pFileName) Adds a HTML file as an attachment. |
void |
addHtmlAttachment(java.lang.String pFileName, java.util.Hashtable pDirMappings) Adds a HTML file as an attachment. |
void |
addHtmlAttachment(java.lang.String pFileName, MimeBodyPart pBodyPart, java.util.Hashtable pDirMappings) Adds a HTML file as an attachment. |
void |
addHtmlAttachment(java.lang.String pFileName, java.lang.String pURLPath, java.lang.String pPhysicalPath) Adds a HTML file as an attachment. |
void |
setProperties(java.util.Hashtable pProps) Sets the prooperies. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String RCS_ID
public static final boolean RCS_ID_RECORDED
Constructor Detail |
---|
public Attachment() throws MessagingException
MessagingException
public Attachment(DataSource pDataSource) throws MessagingException
pDataSource
-MessagingException
Method Detail |
---|
public void setProperties(java.util.Hashtable pProps)
pProps
- propertiespublic void addHtmlAttachment(java.lang.String pFileName) throws DeliveryException
pFileName
- HTML fileDeliveryException
public void addHtmlAttachment(java.lang.String pFileName, java.lang.String pURLPath, java.lang.String pPhysicalPath) throws DeliveryException
pFileName
- HTML fileDeliveryException
public void addHtmlAttachment(java.lang.String pFileName, java.util.Hashtable pDirMappings) throws DeliveryException
pFileName
- HTML fileDeliveryException
public void addHtmlAttachment(java.lang.String pFileName, MimeBodyPart pBodyPart, java.util.Hashtable pDirMappings) throws DeliveryException
pFileName
- HTML filepBodyPart
- MimeBodyPart that you want to attach the HTML.DeliveryException
public void addHtmlAttachment(java.io.InputStream pHtmlDocument, java.lang.String pFileName, java.lang.String pCurrentDir, MimeBodyPart pBodyPart, java.util.Hashtable pDirMappings) throws DeliveryException
pHtmlDocument
- HTML documentpFileName
- File name for this HTML that will appear in the emailpCurrentDir
- Current directory name, needed for parsing images.pBodyPart
- MimeBodyPart that you want to attach this HTML.DeliveryException
public void addHtmlAttachment(java.io.InputStream pHtmlDocument, java.lang.String pFileName, java.lang.String pCurrentDir, MimeBodyPart pBodyPart, java.util.Hashtable pDirMappings, int pIndex, java.lang.String pDisposition) throws DeliveryException
DeliveryException
public void addHtmlAttachment(java.io.InputStream pHtmlDocument, java.lang.String pFileName, java.lang.String pContentType, java.lang.String pCurrentDir, MimeBodyPart pBodyPart, java.util.Hashtable pDirMappings, int pIndex, java.lang.String pDisposition) throws DeliveryException
DeliveryException
public void addHtmlAttachment(java.io.InputStream pHtmlDocument, java.lang.String pFileName, java.lang.String pContentType, java.lang.String pCurrentDir, MimeBodyPart pBodyPart, java.util.Hashtable pDirMappings, int pIndex, java.lang.String pDisposition, boolean deleteImages) throws DeliveryException
DeliveryException
public void addAttachment(java.lang.String pFileName, java.lang.String pContentType, java.io.InputStream pBody) throws DeliveryException
pFileName
- File name for this attachment that will appear in the email.pContentType
- content type of this attachmentpBody
- content of this attachmentDeliveryException
public void addAttachment(java.lang.String pSourceFileName, java.lang.String pFileName, java.lang.String pContentType) throws DeliveryException
pSourceFileName
- File name of the file to attach.pFileName
- File name for this attachment that will appear in the email.pContentType
- content type of the attachmentDeliveryException
public java.io.OutputStream addAttachment(java.lang.String pFileName, java.lang.String pContentType) throws DeliveryException
pFileName
- File name for this attachment that will appear in the email.pContentType
- content type of the attachmentDeliveryException
public java.io.OutputStream addAttachment(java.lang.String pFileName, java.lang.String pContentType, MimeBodyPart pMimeBody, int pIndex) throws DeliveryException
pFileName
- File name for this attachment that will appear in the email.pContentType
- content type of the attachmentpMimeBody
- MimeBodyPart that you want to attach this file.DeliveryException
|
Oracle BI Publisher Java API Reference Release 10.1.3.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |