org.apache.axiom.om.impl
Class MIMEOutputUtils

java.lang.Object
  extended by org.apache.axiom.om.impl.MIMEOutputUtils

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.

public class MIMEOutputUtils
extends Object


Constructor Summary
MIMEOutputUtils()
          Deprecated.  
 
Method Summary
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, OMOutputFormat omOutputFormat)
          Deprecated. Use OMMultipartWriter instead.
static MimeBodyPart createMimeBodyPart(String contentID, DataHandler dataHandler)
          Deprecated. This method is only useful in conjunction with writeBodyPart(OutputStream, MimeBodyPart, String), which is deprecated.
static MimeBodyPart createMimeBodyPart(String contentID, DataHandler dataHandler, 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, MimeBodyPart part, String boundary)
          Deprecated. Use OMMultipartWriter instead.
static void writeDataHandlerWithAttachmentsMessage(DataHandler rootDataHandler, String contentType, OutputStream outputStream, Map attachments, OMOutputFormat format)
          Deprecated. Use OMMultipartWriter instead.
static void writeDataHandlerWithAttachmentsMessage(DataHandler rootDataHandler, String contentType, OutputStream outputStream, Map attachments, 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, Attachments attachments, 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, Attachments attachments, OMOutputFormat format)
          Deprecated. Use OMMultipartWriter instead.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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,
                            OMOutputFormat omOutputFormat)
Deprecated. Use OMMultipartWriter instead.


createMimeBodyPart

public static MimeBodyPart createMimeBodyPart(String contentID,
                                              DataHandler dataHandler)
                                       throws MessagingException
Deprecated. This method is only useful in conjunction with writeBodyPart(OutputStream, MimeBodyPart, String), which is deprecated.

Throws:
MessagingException

createMimeBodyPart

public static MimeBodyPart createMimeBodyPart(String contentID,
                                              DataHandler dataHandler,
                                              OMOutputFormat omOutputFormat)
                                       throws MessagingException
Deprecated. This method is only useful in conjunction with writeBodyPart(OutputStream, MimeBodyPart, String), which is deprecated.

Throws:
MessagingException

writeMimeBoundary

public static void writeMimeBoundary(OutputStream outStream,
                                     String boundary)
                              throws IOException
Deprecated. Use OMMultipartWriter instead.

Throws:
IOException

startWritingMime

public static void startWritingMime(OutputStream outStream,
                                    String boundary)
                             throws IOException
Deprecated. Use OMMultipartWriter instead.

Throws:
IOException

writeBodyPart

public static void writeBodyPart(OutputStream outStream,
                                 MimeBodyPart part,
                                 String boundary)
                          throws IOException,
                                 MessagingException
Deprecated. Use OMMultipartWriter instead.

Throws:
IOException
MessagingException

finishWritingMime

public static void finishWritingMime(OutputStream outStream)
                              throws IOException
Deprecated. Use OMMultipartWriter instead.

Throws:
IOException

writeSOAPWithAttachmentsMessage

public static void writeSOAPWithAttachmentsMessage(StringWriter writer,
                                                   OutputStream outputStream,
                                                   Attachments attachments,
                                                   OMOutputFormat format)
Deprecated. Use OMMultipartWriter instead.


writeDataHandlerWithAttachmentsMessage

public static void writeDataHandlerWithAttachmentsMessage(DataHandler rootDataHandler,
                                                          String contentType,
                                                          OutputStream outputStream,
                                                          Map attachments,
                                                          OMOutputFormat format)
Deprecated. Use OMMultipartWriter instead.


writeDataHandlerWithAttachmentsMessage

public static void writeDataHandlerWithAttachmentsMessage(DataHandler rootDataHandler,
                                                          String contentType,
                                                          OutputStream outputStream,
                                                          Map attachments,
                                                          OMOutputFormat format,
                                                          Collection ids)
Deprecated. Use OMMultipartWriter instead.


writeMM7Message

public static void writeMM7Message(StringWriter writer,
                                   OutputStream outputStream,
                                   Attachments attachments,
                                   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.



Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.