|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axiom.om.impl.MIMEOutputUtils
public class MIMEOutputUtils
Utility class used to write out XML with Attachments
MTOMXMLStreamWriter
Constructor Summary | |
---|---|
MIMEOutputUtils()
|
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)
|
static MimeBodyPart |
createMimeBodyPart(String contentID,
DataHandler dataHandler,
OMOutputFormat omOutputFormat)
|
static void |
finishWritingMime(OutputStream outStream)
|
static void |
startWritingMime(OutputStream outStream,
String boundary)
|
static void |
writeBodyPart(OutputStream outStream,
MimeBodyPart part,
String boundary)
Writes a CRLF for the earlier boundary then the BodyPart data with headers followed by boundary. |
static void |
writeDataHandlerWithAttachmentsMessage(DataHandler rootDataHandler,
String contentType,
OutputStream outputStream,
Map attachments,
OMOutputFormat format)
|
static void |
writeDataHandlerWithAttachmentsMessage(DataHandler rootDataHandler,
String contentType,
OutputStream outputStream,
Map attachments,
OMOutputFormat format,
Collection ids)
|
static void |
writeMimeBoundary(OutputStream outStream,
String boundary)
|
static void |
writeMM7Message(StringWriter writer,
OutputStream outputStream,
Attachments attachments,
OMOutputFormat format,
String innerPartCID,
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(StringWriter writer,
OutputStream outputStream,
Attachments attachments,
OMOutputFormat format)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MIMEOutputUtils()
Method Detail |
---|
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, OMOutputFormat omOutputFormat)
OMMultipartWriter
instead
public static MimeBodyPart createMimeBodyPart(String contentID, DataHandler dataHandler) throws MessagingException
MessagingException
public static MimeBodyPart createMimeBodyPart(String contentID, DataHandler dataHandler, OMOutputFormat omOutputFormat) throws MessagingException
MessagingException
public static void writeMimeBoundary(OutputStream outStream, String boundary) throws IOException
IOException
- This will write the boundary to output Streampublic static void startWritingMime(OutputStream outStream, String boundary) throws IOException
IOException
- This will write the boundary with CRLFpublic static void writeBodyPart(OutputStream outStream, MimeBodyPart part, String boundary) throws IOException, MessagingException
IOException
MessagingException
public static void finishWritingMime(OutputStream outStream) throws IOException
IOException
- This will write "--" to the end of last boundarypublic static void writeSOAPWithAttachmentsMessage(StringWriter writer, OutputStream outputStream, Attachments attachments, OMOutputFormat format)
public static void writeDataHandlerWithAttachmentsMessage(DataHandler rootDataHandler, String contentType, OutputStream outputStream, Map attachments, OMOutputFormat format)
public static void writeDataHandlerWithAttachmentsMessage(DataHandler rootDataHandler, String contentType, OutputStream outputStream, Map attachments, OMOutputFormat format, Collection ids)
public static void writeMM7Message(StringWriter writer, OutputStream outputStream, Attachments attachments, OMOutputFormat format, String innerPartCID, String innerBoundary)
writer
- outputStream
- attachments
- format
- innerBoundary
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |