OMMultipartWriter, which
has as cleaner API and supports streaming of individual MIME parts, in particular the
SOAP part.public class MIMEOutputUtils extends Object
| Constructor and Description |
|---|
MIMEOutputUtils()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
complete(OutputStream outStream,
byte[] xmlData,
LinkedList binaryNodeList,
String boundary,
String contentId,
String charSetEncoding,
String SOAPContentType)
Deprecated.
Use
OMMultipartWriter instead. |
static void |
complete(OutputStream outStream,
byte[] xmlData,
LinkedList binaryNodeList,
String boundary,
String contentId,
String charSetEncoding,
String SOAPContentType,
org.apache.axiom.om.OMOutputFormat omOutputFormat)
Deprecated.
Use
OMMultipartWriter instead. |
static javax.mail.internet.MimeBodyPart |
createMimeBodyPart(String contentID,
javax.activation.DataHandler dataHandler)
Deprecated.
This method is only useful in conjunction with
writeBodyPart(OutputStream, MimeBodyPart, String), which is deprecated. |
static javax.mail.internet.MimeBodyPart |
createMimeBodyPart(String contentID,
javax.activation.DataHandler dataHandler,
org.apache.axiom.om.OMOutputFormat omOutputFormat)
Deprecated.
This method is only useful in conjunction with
writeBodyPart(OutputStream, MimeBodyPart, String), which is deprecated. |
static void |
finishWritingMime(OutputStream outStream)
Deprecated.
Use
OMMultipartWriter instead. |
static void |
startWritingMime(OutputStream outStream,
String boundary)
Deprecated.
Use
OMMultipartWriter instead. |
static void |
writeBodyPart(OutputStream outStream,
javax.mail.internet.MimeBodyPart part,
String boundary)
Deprecated.
Use
OMMultipartWriter instead. |
static void |
writeDataHandlerWithAttachmentsMessage(javax.activation.DataHandler rootDataHandler,
String contentType,
OutputStream outputStream,
Map attachments,
org.apache.axiom.om.OMOutputFormat format)
Deprecated.
Use
OMMultipartWriter instead. |
static void |
writeDataHandlerWithAttachmentsMessage(javax.activation.DataHandler rootDataHandler,
String contentType,
OutputStream outputStream,
Map attachments,
org.apache.axiom.om.OMOutputFormat format,
Collection ids)
Deprecated.
Use
OMMultipartWriter instead. |
static void |
writeMimeBoundary(OutputStream outStream,
String boundary)
Deprecated.
Use
OMMultipartWriter instead. |
static void |
writeMM7Message(StringWriter writer,
OutputStream outputStream,
org.apache.axiom.attachments.Attachments attachments,
org.apache.axiom.om.OMOutputFormat format,
String innerPartCID,
String innerBoundary)
Deprecated.
Axiom only supports standard SwA messages. However,
OMMultipartWriter
provides a flexible way to build MIME packages for non standard formats such as
MM7. |
static void |
writeSOAPWithAttachmentsMessage(StringWriter writer,
OutputStream outputStream,
org.apache.axiom.attachments.Attachments attachments,
org.apache.axiom.om.OMOutputFormat format)
Deprecated.
Use
OMMultipartWriter instead. |
public static void complete(OutputStream outStream, byte[] xmlData, LinkedList binaryNodeList, String boundary, String contentId, String charSetEncoding, String SOAPContentType)
OMMultipartWriter instead.public static void complete(OutputStream outStream, byte[] xmlData, LinkedList binaryNodeList, String boundary, String contentId, String charSetEncoding, String SOAPContentType, org.apache.axiom.om.OMOutputFormat omOutputFormat)
OMMultipartWriter instead.public static javax.mail.internet.MimeBodyPart createMimeBodyPart(String contentID, javax.activation.DataHandler dataHandler) throws javax.mail.MessagingException
writeBodyPart(OutputStream, MimeBodyPart, String), which is deprecated.javax.mail.MessagingExceptionpublic static javax.mail.internet.MimeBodyPart createMimeBodyPart(String contentID, javax.activation.DataHandler dataHandler, org.apache.axiom.om.OMOutputFormat omOutputFormat) throws javax.mail.MessagingException
writeBodyPart(OutputStream, MimeBodyPart, String), which is deprecated.javax.mail.MessagingExceptionpublic static void writeMimeBoundary(OutputStream outStream, String boundary) throws IOException
OMMultipartWriter instead.IOExceptionpublic static void startWritingMime(OutputStream outStream, String boundary) throws IOException
OMMultipartWriter instead.IOExceptionpublic static void writeBodyPart(OutputStream outStream, javax.mail.internet.MimeBodyPart part, String boundary) throws IOException, javax.mail.MessagingException
OMMultipartWriter instead.IOExceptionjavax.mail.MessagingExceptionpublic static void finishWritingMime(OutputStream outStream) throws IOException
OMMultipartWriter instead.IOExceptionpublic static void writeSOAPWithAttachmentsMessage(StringWriter writer, OutputStream outputStream, org.apache.axiom.attachments.Attachments attachments, org.apache.axiom.om.OMOutputFormat format)
OMMultipartWriter instead.public static void writeDataHandlerWithAttachmentsMessage(javax.activation.DataHandler rootDataHandler,
String contentType,
OutputStream outputStream,
Map attachments,
org.apache.axiom.om.OMOutputFormat format)
OMMultipartWriter instead.public static void writeDataHandlerWithAttachmentsMessage(javax.activation.DataHandler rootDataHandler,
String contentType,
OutputStream outputStream,
Map attachments,
org.apache.axiom.om.OMOutputFormat format,
Collection ids)
OMMultipartWriter instead.public static void writeMM7Message(StringWriter writer, OutputStream outputStream, org.apache.axiom.attachments.Attachments attachments, org.apache.axiom.om.OMOutputFormat format, String innerPartCID, String innerBoundary)
OMMultipartWriter
provides a flexible way to build MIME packages for non standard formats such as
MM7.Copyright ? The Apache Software Foundation. All Rights Reserved.