Class MIMEOutputUtils


  • public class MIMEOutputUtils
    extends Object
    Deprecated.
    The features of this class are now implemented by OMMultipartWriter, which has as cleaner API and supports streaming of individual MIME parts, in particular the SOAP part.
    • Constructor Detail

      • MIMEOutputUtils

        public MIMEOutputUtils()
        Deprecated.
    • Method Detail

      • complete

        public static void complete​(OutputStream outStream,
                                    byte[] xmlData,
                                    LinkedList binaryNodeList,
                                    String boundary,
                                    String contentId,
                                    String charSetEncoding,
                                    String SOAPContentType)
        Deprecated.
        Use OMMultipartWriter 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.
        Use OMMultipartWriter 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 with writeBodyPart(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 with writeBodyPart(OutputStream, MimeBodyPart, String), which is deprecated.
        Throws:
        javax.mail.MessagingException
      • writeBodyPart

        public static void writeBodyPart​(OutputStream outStream,
                                         javax.mail.internet.MimeBodyPart part,
                                         String boundary)
                                  throws IOException,
                                         javax.mail.MessagingException
        Deprecated.
        Use OMMultipartWriter instead.
        Throws:
        IOException
        javax.mail.MessagingException
      • writeSOAPWithAttachmentsMessage

        public static void writeSOAPWithAttachmentsMessage​(StringWriter writer,
                                                           OutputStream outputStream,
                                                           org.apache.axiom.attachments.Attachments attachments,
                                                           org.apache.axiom.om.OMOutputFormat format)
        Deprecated.
        Use OMMultipartWriter instead.
      • writeDataHandlerWithAttachmentsMessage

        public static void writeDataHandlerWithAttachmentsMessage​(DataHandler rootDataHandler,
                                                                  String contentType,
                                                                  OutputStream outputStream,
                                                                  Map attachments,
                                                                  org.apache.axiom.om.OMOutputFormat format)
        Deprecated.
        Use OMMultipartWriter instead.
      • writeDataHandlerWithAttachmentsMessage

        public static void writeDataHandlerWithAttachmentsMessage​(DataHandler rootDataHandler,
                                                                  String contentType,
                                                                  OutputStream outputStream,
                                                                  Map attachments,
                                                                  org.apache.axiom.om.OMOutputFormat format,
                                                                  Collection ids)
        Deprecated.
        Use OMMultipartWriter 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.