org.apache.axiom.om.impl
Class MIMEOutputUtils
java.lang.Object
org.apache.axiom.om.impl.MIMEOutputUtils
- public class MIMEOutputUtils
- extends java.lang.Object
Method Summary |
static void |
complete(java.io.OutputStream outStream,
java.io.StringWriter writer,
java.util.LinkedList binaryNodeList,
java.lang.String boundary,
java.lang.String contentId,
java.lang.String charSetEncoding,
java.lang.String SOAPContentType)
|
static javax.mail.internet.MimeBodyPart |
createMimeBodyPart(java.lang.String contentID,
javax.activation.DataHandler dataHandler)
|
static void |
finishWritingMime(java.io.OutputStream outStream)
|
static void |
startWritingMime(java.io.OutputStream outStream,
java.lang.String boundary)
|
static void |
writeBodyPart(java.io.OutputStream outStream,
javax.mail.internet.MimeBodyPart part,
java.lang.String boundary)
Writes a CRLF for the earlier boundary then the BodyPart data with headers followed by
boundary. |
static void |
writeMimeBoundary(java.io.OutputStream outStream,
java.lang.String boundary)
|
static void |
writeMM7Message(java.io.StringWriter writer,
java.io.OutputStream outputStream,
Attachments attachments,
OMOutputFormat format,
java.lang.String innerPartCID,
java.lang.String innerBoundary)
Pack all the attachments in to a multipart/related MIME part and attachs it as the second
MIME Part of MIME message |
static void |
writeSOAPWithAttachmentsMessage(java.io.StringWriter writer,
java.io.OutputStream outputStream,
Attachments attachments,
OMOutputFormat format)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MIMEOutputUtils
public MIMEOutputUtils()
complete
public static void complete(java.io.OutputStream outStream,
java.io.StringWriter writer,
java.util.LinkedList binaryNodeList,
java.lang.String boundary,
java.lang.String contentId,
java.lang.String charSetEncoding,
java.lang.String SOAPContentType)
createMimeBodyPart
public static javax.mail.internet.MimeBodyPart createMimeBodyPart(java.lang.String contentID,
javax.activation.DataHandler dataHandler)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
writeMimeBoundary
public static void writeMimeBoundary(java.io.OutputStream outStream,
java.lang.String boundary)
throws java.io.IOException
- Throws:
java.io.IOException
- This will write the boundary to output Stream
startWritingMime
public static void startWritingMime(java.io.OutputStream outStream,
java.lang.String boundary)
throws java.io.IOException
- Throws:
java.io.IOException
- This will write the boundary with CRLF
writeBodyPart
public static void writeBodyPart(java.io.OutputStream outStream,
javax.mail.internet.MimeBodyPart part,
java.lang.String boundary)
throws java.io.IOException,
javax.mail.MessagingException
- Writes a CRLF for the earlier boundary then the BodyPart data with headers followed by
boundary. Writes only the boundary. No more CRLF's are written after that.
- Throws:
java.io.IOException
javax.mail.MessagingException
finishWritingMime
public static void finishWritingMime(java.io.OutputStream outStream)
throws java.io.IOException
- Throws:
java.io.IOException
- This will write "--" to the end of last boundary
writeSOAPWithAttachmentsMessage
public static void writeSOAPWithAttachmentsMessage(java.io.StringWriter writer,
java.io.OutputStream outputStream,
Attachments attachments,
OMOutputFormat format)
writeMM7Message
public static void writeMM7Message(java.io.StringWriter writer,
java.io.OutputStream outputStream,
Attachments attachments,
OMOutputFormat format,
java.lang.String innerPartCID,
java.lang.String innerBoundary)
- Pack all the attachments in to a multipart/related MIME part and attachs it as the second
MIME Part of MIME message
- Parameters:
writer
- outputStream
- attachments
- format
- innerBoundary
-
Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.