org.apache.axis2.om.impl
Class MIMEOutputUtils
java.lang.Object
org.apache.axis2.om.impl.MIMEOutputUtils
- public class MIMEOutputUtils
- extends Object
Method Summary |
static void |
complete(OutputStream outStream,
StringWriter writer,
LinkedList binaryNodeList,
String boundary,
String contentId,
String charSetEncoding,
String SOAPContentType)
|
static javax.mail.internet.MimeBodyPart |
createMimeBodyPart(OMText node)
|
static void |
finishWritingMime(OutputStream outStream)
|
static String |
getContentTypeForMime(String boundary,
String contentId,
String charSetEncoding,
String SOAPContentType)
|
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 |
writeMimeBoundary(OutputStream outStream,
String boundary)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MIMEOutputUtils
public MIMEOutputUtils()
complete
public static void complete(OutputStream outStream,
StringWriter writer,
LinkedList binaryNodeList,
String boundary,
String contentId,
String charSetEncoding,
String SOAPContentType)
createMimeBodyPart
public static javax.mail.internet.MimeBodyPart createMimeBodyPart(OMText node)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
writeMimeBoundary
public static void writeMimeBoundary(OutputStream outStream,
String boundary)
throws IOException
- Throws:
IOException
- This will write the boundary to output Stream
startWritingMime
public static void startWritingMime(OutputStream outStream,
String boundary)
throws IOException
- Throws:
IOException
- This will write the boundary with CRLF
writeBodyPart
public static void writeBodyPart(OutputStream outStream,
javax.mail.internet.MimeBodyPart part,
String boundary)
throws IOException,
javax.mail.MessagingException
- Writes a CRLF for the earlier boundary then the BodyPart data
with headers followed by boundary. Writes only the boundary. No more
CRLF's are written after that.
- Throws:
IOException
javax.mail.MessagingException
finishWritingMime
public static void finishWritingMime(OutputStream outStream)
throws IOException
- Throws:
IOException
- This will write "--" to the end of last boundary
getContentTypeForMime
public static String getContentTypeForMime(String boundary,
String contentId,
String charSetEncoding,
String SOAPContentType)