|
||||||||||
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
Constructor Summary | |
---|---|
MIMEOutputUtils()
|
Method Summary | |
---|---|
static void |
complete(OutputStream outStream,
byte[] xmlData,
LinkedList binaryNodeList,
String boundary,
String contentId,
String charSetEncoding,
String SOAPContentType)
Invoked by MTOMXMLStreamWriter to write the SOAP Part and the attachements. |
static void |
complete(OutputStream outStream,
byte[] xmlData,
LinkedList binaryNodeList,
String boundary,
String contentId,
String charSetEncoding,
String SOAPContentType,
OMOutputFormat omOutputFormat)
Invoked by MTOMXMLStreamWriter to write the SOAP Part and the attachements. |
static void |
complete(OutputStream outStream,
String bufferedXML,
LinkedList binaryNodeList,
String boundary,
String contentId,
String charSetEncoding,
String SOAPContentType)
Deprecated. is anyone really using this? Invoked by MTOMXMLStreamWriter to write the SOAP Part and the attachemts |
static void |
complete(OutputStream outStream,
StringWriter writer,
LinkedList binaryNodeList,
String boundary,
String contentId,
String charSetEncoding,
String SOAPContentType)
Deprecated. - is anyone really using this? Write the SOAPPart and attachments |
static javax.mail.internet.MimeBodyPart |
createMimeBodyPart(String contentID,
javax.activation.DataHandler dataHandler)
|
static javax.mail.internet.MimeBodyPart |
createMimeBodyPart(String contentID,
javax.activation.DataHandler dataHandler,
OMOutputFormat omOutputFormat)
|
static void |
finishWritingMime(OutputStream outStream)
|
static void |
startWritingMime(OutputStream outStream,
String boundary)
|
static void |
writeBodyPart(OutputStream outStream,
javax.mail.internet.MimeBodyPart part,
String boundary)
Writes a CRLF for the earlier boundary then the BodyPart data with headers followed by boundary. |
static void |
writeDataHandlerWithAttachmentsMessage(javax.activation.DataHandler rootDataHandler,
String contentType,
OutputStream outputStream,
Map attachments,
OMOutputFormat format)
|
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, String bufferedXML, LinkedList binaryNodeList, String boundary, String contentId, String charSetEncoding, String SOAPContentType)
outStream
- OutputStream targetbufferedXML
- String containing XML of SOAPPartbinaryNodeList
- Text nodes with the attachment Data Handlersboundary
- Boundary StringcontentId
- Content-ID of SOAPPartcharSetEncoding
- Character Encoding of SOAPPartSOAPContentType
- Content-Type of SOAPPartpublic static void complete(OutputStream outStream, byte[] xmlData, LinkedList binaryNodeList, String boundary, String contentId, String charSetEncoding, String SOAPContentType)
outStream
- OutputStream targetbufferedXML
- String containing XML of SOAPPartbinaryNodeList
- Text nodes with the attachment Data Handlersboundary
- Boundary StringcontentId
- Content-ID of SOAPPartcharSetEncoding
- Character Encoding of SOAPPartSOAPContentType
- Content-Type of SOAPPartpublic static void complete(OutputStream outStream, byte[] xmlData, LinkedList binaryNodeList, String boundary, String contentId, String charSetEncoding, String SOAPContentType, OMOutputFormat omOutputFormat)
outStream
- OutputStream targetbufferedXML
- String containing XML of SOAPPartbinaryNodeList
- Text nodes with the attachment Data Handlersboundary
- Boundary StringcontentId
- Content-ID of SOAPPartcharSetEncoding
- Character Encoding of SOAPPartSOAPContentType
- Content-Type of SOAPPartOMOutputFormat
- public static void complete(OutputStream outStream, StringWriter writer, LinkedList binaryNodeList, String boundary, String contentId, String charSetEncoding, String SOAPContentType)
outStream
- writer
- binaryNodeList
- boundary
- contentId
- charSetEncoding
- SOAPContentType
- public static javax.mail.internet.MimeBodyPart createMimeBodyPart(String contentID, javax.activation.DataHandler dataHandler) throws javax.mail.MessagingException
javax.mail.MessagingException
public static javax.mail.internet.MimeBodyPart createMimeBodyPart(String contentID, javax.activation.DataHandler dataHandler, OMOutputFormat omOutputFormat) throws javax.mail.MessagingException
javax.mail.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, javax.mail.internet.MimeBodyPart part, String boundary) throws IOException, javax.mail.MessagingException
IOException
javax.mail.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(javax.activation.DataHandler rootDataHandler, String contentType, OutputStream outputStream, Map attachments, OMOutputFormat format)
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 |