public class MimeUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String[] |
filter
Field filter
|
protected static org.apache.commons.logging.Log |
log
Field log
|
Constructor and Description |
---|
MimeUtils() |
Modifier and Type | Method and Description |
---|---|
static MimeMultipart |
createMP(String env,
Collection parts,
int sendType)
This routine will create a multipart object from the parts and the SOAP content.
|
protected static long |
getContentLength(MimeBodyPart bp)
Determine the length for the individual part.
|
static long |
getContentLength(Multipart mp)
Determine as efficiently as possible the content length for attachments in a mail Multipart.
|
static String |
getContentType(MimeMultipart mp)
This routine will get the content type from a mulit-part mime message.
|
static void |
writeToMultiPartStream(OutputStream os,
MimeMultipart mp)
This routine will the multi part type and write it out to a stream.
|
protected static org.apache.commons.logging.Log log
public static String[] filter
public static long getContentLength(Multipart mp) throws MessagingException, IOException
mp
- is the multipart to be serarched.MessagingException
IOException
protected static long getContentLength(MimeBodyPart bp)
bp
- is the part to be searched.public static void writeToMultiPartStream(OutputStream os, MimeMultipart mp)
Note that is does *NOT* pass AxisProperties
to javax.mail.Session.getInstance
, but instead
the System properties.
os
- is the output stream to write to.mp
- the multipart that needs to be written to the stream.public static String getContentType(MimeMultipart mp)
mp
- the MimeMultipartpublic static MimeMultipart createMP(String env, Collection parts, int sendType) throws AxisFault
env
- should be the text for the main root part.parts
- contain a collection of the message parts.AxisFault
Copyright © The Apache Software Foundation. All Rights Reserved.