org.apache.axis.attachments
Class MimeUtils
java.lang.Object
|
+--org.apache.axis.attachments.MimeUtils
- public class MimeUtils
- extends java.lang.Object
This class is defines utilities for mime.
Field Summary |
static java.lang.String[] |
filter
|
Method Summary |
static javax.mail.internet.MimeMultipart |
createMP(java.lang.String env,
java.util.Map parts)
This routine will create a multipar object from the parts and the SOAP content. |
protected static long |
getContentLength(javax.mail.internet.MimeBodyPart bp)
Determine the length for the individual part. |
static long |
getContentLength(javax.mail.Multipart mp)
Determine as efficiently as possible the content length for attachments in a mail Multipart. |
static java.lang.String |
getContentType(javax.mail.internet.MimeMultipart mp)
This routine will get the content type. |
static java.lang.String |
getNewContentIdValue()
|
static void |
writeToMultiPartStream(java.io.OutputStream os,
javax.mail.internet.MimeMultipart mp)
This routine will the multi part type and write it out to a stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
filter
public static java.lang.String[] filter
MimeUtils
public MimeUtils()
getContentLength
public static long getContentLength(javax.mail.Multipart mp)
throws javax.mail.MessagingException,
java.io.IOException
- Determine as efficiently as possible the content length for attachments in a mail Multipart.
- Parameters:
mp
- is the multipart to be serarched.- Returns:
- the actual length.
getContentLength
protected static long getContentLength(javax.mail.internet.MimeBodyPart bp)
- Determine the length for the individual part.
- Parameters:
mp
- is the part to be serarched.- Returns:
- the length in bytes.
writeToMultiPartStream
public static void writeToMultiPartStream(java.io.OutputStream os,
javax.mail.internet.MimeMultipart mp)
- This routine will the multi part type and write it out to a stream.
- Parameters:
os
- is the output stream to write to.the
- multipart that needs to be written to the stream.
getContentType
public static java.lang.String getContentType(javax.mail.internet.MimeMultipart mp)
- This routine will get the content type.
createMP
public static javax.mail.internet.MimeMultipart createMP(java.lang.String env,
java.util.Map parts)
throws AxisFault
- This routine will create a multipar object from the parts and the SOAP content.
- Parameters:
the
- env should be the text for the main root part.the
- parts contain a collection of mappings of cids to the message parts.
getNewContentIdValue
public static java.lang.String getNewContentIdValue()
Copyright © 2001 Apache XML Project. All Rights Reserved.