Package org.apache.axiom.om.impl
Class MIMEOutputUtils
- java.lang.Object
-
- org.apache.axiom.om.impl.MIMEOutputUtils
-
public class MIMEOutputUtils extends Object
Deprecated.The features of this class are now implemented byOMMultipartWriter
, which has as cleaner API and supports streaming of individual MIME parts, in particular the SOAP part.
-
-
Constructor Summary
Constructors Constructor Description MIMEOutputUtils()
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static void
complete(OutputStream outStream, byte[] xmlData, LinkedList binaryNodeList, String boundary, String contentId, String charSetEncoding, String SOAPContentType)
Deprecated.UseOMMultipartWriter
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.UseOMMultipartWriter
instead.static javax.mail.internet.MimeBodyPart
createMimeBodyPart(String contentID, DataHandler dataHandler)
Deprecated.This method is only useful in conjunction withwriteBodyPart(OutputStream, MimeBodyPart, String)
, which is deprecated.static javax.mail.internet.MimeBodyPart
createMimeBodyPart(String contentID, DataHandler dataHandler, org.apache.axiom.om.OMOutputFormat omOutputFormat)
Deprecated.This method is only useful in conjunction withwriteBodyPart(OutputStream, MimeBodyPart, String)
, which is deprecated.static void
finishWritingMime(OutputStream outStream)
Deprecated.UseOMMultipartWriter
instead.static void
startWritingMime(OutputStream outStream, String boundary)
Deprecated.UseOMMultipartWriter
instead.static void
writeBodyPart(OutputStream outStream, javax.mail.internet.MimeBodyPart part, String boundary)
Deprecated.UseOMMultipartWriter
instead.static void
writeDataHandlerWithAttachmentsMessage(DataHandler rootDataHandler, String contentType, OutputStream outputStream, Map attachments, org.apache.axiom.om.OMOutputFormat format)
Deprecated.UseOMMultipartWriter
instead.static void
writeDataHandlerWithAttachmentsMessage(DataHandler rootDataHandler, String contentType, OutputStream outputStream, Map attachments, org.apache.axiom.om.OMOutputFormat format, Collection ids)
Deprecated.UseOMMultipartWriter
instead.static void
writeMimeBoundary(OutputStream outStream, String boundary)
Deprecated.UseOMMultipartWriter
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.static void
writeSOAPWithAttachmentsMessage(StringWriter writer, OutputStream outputStream, org.apache.axiom.attachments.Attachments attachments, org.apache.axiom.om.OMOutputFormat format)
Deprecated.UseOMMultipartWriter
instead.
-
-
-
Method Detail
-
complete
public static void complete(OutputStream outStream, byte[] xmlData, LinkedList binaryNodeList, String boundary, String contentId, String charSetEncoding, String SOAPContentType)
Deprecated.UseOMMultipartWriter
instead.
-
complete
public static void complete(OutputStream outStream, byte[] xmlData, LinkedList binaryNodeList, String boundary, String contentId, String charSetEncoding, String SOAPContentType, org.apache.axiom.om.OMOutputFormat omOutputFormat)
Deprecated.UseOMMultipartWriter
instead.
-
createMimeBodyPart
public static javax.mail.internet.MimeBodyPart createMimeBodyPart(String contentID, DataHandler dataHandler) throws javax.mail.MessagingException
Deprecated.This method is only useful in conjunction withwriteBodyPart(OutputStream, MimeBodyPart, String)
, which is deprecated.- Throws:
javax.mail.MessagingException
-
createMimeBodyPart
public static javax.mail.internet.MimeBodyPart createMimeBodyPart(String contentID, DataHandler dataHandler, org.apache.axiom.om.OMOutputFormat omOutputFormat) throws javax.mail.MessagingException
Deprecated.This method is only useful in conjunction withwriteBodyPart(OutputStream, MimeBodyPart, String)
, which is deprecated.- Throws:
javax.mail.MessagingException
-
writeMimeBoundary
public static void writeMimeBoundary(OutputStream outStream, String boundary) throws IOException
Deprecated.UseOMMultipartWriter
instead.- Throws:
IOException
-
startWritingMime
public static void startWritingMime(OutputStream outStream, String boundary) throws IOException
Deprecated.UseOMMultipartWriter
instead.- Throws:
IOException
-
writeBodyPart
public static void writeBodyPart(OutputStream outStream, javax.mail.internet.MimeBodyPart part, String boundary) throws IOException, javax.mail.MessagingException
Deprecated.UseOMMultipartWriter
instead.- Throws:
IOException
javax.mail.MessagingException
-
finishWritingMime
public static void finishWritingMime(OutputStream outStream) throws IOException
Deprecated.UseOMMultipartWriter
instead.- Throws:
IOException
-
writeSOAPWithAttachmentsMessage
public static void writeSOAPWithAttachmentsMessage(StringWriter writer, OutputStream outputStream, org.apache.axiom.attachments.Attachments attachments, org.apache.axiom.om.OMOutputFormat format)
Deprecated.UseOMMultipartWriter
instead.
-
writeDataHandlerWithAttachmentsMessage
public static void writeDataHandlerWithAttachmentsMessage(DataHandler rootDataHandler, String contentType, OutputStream outputStream, Map attachments, org.apache.axiom.om.OMOutputFormat format)
Deprecated.UseOMMultipartWriter
instead.
-
writeDataHandlerWithAttachmentsMessage
public static void writeDataHandlerWithAttachmentsMessage(DataHandler rootDataHandler, String contentType, OutputStream outputStream, Map attachments, org.apache.axiom.om.OMOutputFormat format, Collection ids)
Deprecated.UseOMMultipartWriter
instead.
-
writeMM7Message
public 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.
-
-