org.apache.axis.attachments
public class MimeUtils extends Object
Field Summary | |
---|---|
static String[] | filter Field filter |
protected static Log | log Field log |
Method Summary | |
---|---|
static MimeMultipart | createMP(String env, Collection parts)
This routine will create a multipart object from the parts and the SOAP content. |
static long | getContentLength(Multipart mp)
Determine as efficiently as possible the content length for attachments in a mail Multipart. |
protected static long | getContentLength(MimeBodyPart bp)
Determine the length for the individual part. |
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.
|
Parameters: env should be the text for the main root part. parts contain a collection of the message parts.
Returns: a new MimeMultipart object
Throws: org.apache.axis.AxisFault
Parameters: mp is the multipart to be serarched.
Returns: the actual length.
Throws: javax.mail.MessagingException java.io.IOException
Parameters: bp is the part to be searched.
Returns: the length in bytes.
Parameters: mp the MimeMultipart
Returns: the content type
Note that is does *NOT* pass AxisProperties
to javax.mail.Session.getInstance
, but instead
the System properties.
Parameters: os is the output stream to write to. mp the multipart that needs to be written to the stream.